Add missing dependency

This commit is contained in:
IRBorisov 2024-03-15 14:40:47 +03:00
parent fd9b5d2728
commit 8e7491b2e2
3 changed files with 7 additions and 13 deletions

View File

@ -18,7 +18,7 @@ services:
restart: always
depends_on:
- backend
build:
build:
context: ./rsconcept/frontend
dockerfile: Dockerfile.dev
args:
@ -27,7 +27,6 @@ services:
- 3002:3002
command: npm run dev -- --host
backend:
container_name: dev-portal-backend
restart: always
@ -41,9 +40,7 @@ services:
volumes:
- django_static_volume:/home/app/web/static
- django_media_volume:/home/app/web/media
command:
gunicorn -w 3 project.wsgi --bind 0.0.0.0:8002
command: gunicorn -w 3 project.wsgi --bind 0.0.0.0:8002
postgresql-db:
container_name: dev-portal-db
@ -52,4 +49,3 @@ services:
env_file: ./postgresql/.env.dev
volumes:
- postgres_volume:/var/lib/postgresql/data

View File

@ -18,7 +18,7 @@ services:
restart: always
depends_on:
- backend
build:
build:
context: ./rsconcept/frontend
args:
BUILD_TYPE: production.local
@ -26,7 +26,6 @@ services:
- 3001
command: serve -s /home/node -l 3001
backend:
container_name: local-portal-backend
restart: always
@ -40,9 +39,7 @@ services:
volumes:
- django_static_volume:/home/app/web/static
- django_media_volume:/home/app/web/media
command:
gunicorn -w 3 project.wsgi --bind 0.0.0.0:8001
command: gunicorn -w 3 project.wsgi --bind 0.0.0.0:8001
postgresql-db:
container_name: local-portal-db
@ -52,7 +49,6 @@ services:
volumes:
- postgres_volume:/var/lib/postgresql/data
nginx:
container_name: local-portal-router
restart: always
@ -66,7 +62,8 @@ services:
- 3001:3001
depends_on:
- backend
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
- frontend
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
volumes:
- django_static_volume:/var/www/static
- django_media_volume:/var/www/media

View File

@ -101,6 +101,7 @@ services:
- 443:443
depends_on:
- backend
- frontend
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
volumes:
- django_static_volume:/var/www/static