Skip to content

Commit

Permalink
fix: frontend docker image in docker-compose now
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed Oct 25, 2024
1 parent 017d593 commit f583ba2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
5 changes: 4 additions & 1 deletion docker/Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ EXPOSE 3000

USER node

CMD [ "pm2-runtime", "npm", "--", "start" ]
ENV NEXT_PUBLIC_BACKEND_URL=http://0.0.0.0:8000

CMD ["pm2-runtime", "npm", "--", "start", "--", "-H", "0.0.0.0"]

32 changes: 16 additions & 16 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ services:
env_file:
- ./.env

# frontend:
# hostname: frontend
# image: frontend_app_thirdeye
# container_name: frontend_app_thirdeye
# build:
# context: ../
# dockerfile: ./docker/Dockerfile.frontend
# networks:
# default:
# internal:
# volumes:
# - ../frontend:/usr/app
# env_file:
# - ./.env
# ports:
# - "3000:3000"
frontend:
hostname: frontend
image: frontend_app_thirdeye
container_name: frontend_app_thirdeye
build:
context: ../
dockerfile: ./docker/Dockerfile.frontend
networks:
default:
internal:
volumes:
- ../frontend:/usr/app
env_file:
- ./.env
ports:
- "3000:3000"

# nginx:
# hostname: nginx
Expand Down

0 comments on commit f583ba2

Please sign in to comment.