Skip to content

Commit

Permalink
tweaking with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
MCLiii committed Jan 13, 2024
1 parent c3d6ad8 commit 5ee6f4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions Backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
DATAFORMAT_PATH = f'{os.getcwd()}/Data/sc1-data-format/format.json'
HOST_PORT = 4001

# Check if system is running in a docker container
DOCKER = os.environ.get('DOCKER', False)

REDIS_URL = 'redis-stack-server' if DOCKER else '127.0.0.1'
REDIS_URL = '127.0.0.1'
REDIS_PORT = 6379
REDIS_DB = 0

Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ FROM nikolaik/python-nodejs:python3.10-nodejs16
WORKDIR /chase-car-dashboard
COPY . .
RUN npm install
ENV DOCKER Yes
CMD ["npm", "start"]

0 comments on commit 5ee6f4b

Please sign in to comment.