Skip to content

Commit

Permalink
fixed docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavCR committed Mar 1, 2024
1 parent 8805186 commit 726ad19
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions infra/docker-compose-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ services:
depends_on:
- db

frontend:
image: ${DOCKERHUB_USERNAME_FRONT}/${PROJECT_NAME}_frontend:latest
env_file: .env
command: cp -r /app/build/. /frontend_static/
ports:
- "3000:3000"
volumes:
- static_volume:/frontend_static
depends_on:
- db

nginx:
image: ${DOCKERHUB_USERNAME}/${PROJECT_NAME}_nginx:latest
ports:
Expand All @@ -36,14 +47,4 @@ services:
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- backend

frontend:
image: ${DOCKERHUB_USERNAME_FRONT}/${PROJECT_NAME}_frontend:latest
env_file: .env
command: cp -r /app/build/. /frontend_static/
ports:
- "3000:3000"
volumes:
- static_volume:/frontend_static
depends_on:
- backend
- frontend

0 comments on commit 726ad19

Please sign in to comment.