Skip to content

Commit

Permalink
Merge pull request #91 from Pet-projects-CodePET/dev_docker
Browse files Browse the repository at this point in the history
fixed docker compose
  • Loading branch information
VladislavCR authored Mar 1, 2024
2 parents e68610a + 726ad19 commit cc9d025
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 cc9d025

Please sign in to comment.