diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index de83608b..465bae31 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -1,10 +1,12 @@ +name: concept-portal + volumes: postgres_volume: - name: "postgresql-db" + name: "portal-data" django_static_volume: - name: "static" + name: "portal-static" django_media_volume: - name: "media" + name: "portal-media" networks: default: @@ -18,6 +20,7 @@ secrets: services: frontend: + container_name: portal-frontend restart: always depends_on: - backend @@ -29,6 +32,7 @@ services: backend: + container_name: portal-backend restart: always depends_on: - postgresql-db @@ -51,6 +55,7 @@ services: postgresql-db: + container_name: portal-db restart: always image: postgres:alpine secrets: @@ -63,6 +68,7 @@ services: nginx: + container_name: portal-router restart: always build: context: ./nginx diff --git a/rsconcept/backend/.env.prod b/rsconcept/backend/.env.prod index a0608fea..a359faf0 100644 --- a/rsconcept/backend/.env.prod +++ b/rsconcept/backend/.env.prod @@ -1,8 +1,8 @@ # Application settings -ALLOWED_HOSTS=localhost;portal.acconcept.ru;dev.concept.ru;mail.acconcept.ru; -CSRF_TRUSTED_ORIGINS=https://dev.concept.ru:3000;https://localhost:3000;https://portal.acconcept.ru;https://portal.acconcept.ru:8081;https://mail.acconcept.ru:8081; -CORS_ALLOWED_ORIGINS=https://dev.concept.ru:3000;https://localhost:3000;https://portal.acconcept.ru;https://portal.acconcept.ru:8081;https://mail.acconcept.ru:8081; +ALLOWED_HOSTS=localhost;portal.acconcept.ru;dev.concept.ru;mail.acconcept.ru +CSRF_TRUSTED_ORIGINS=https://dev.concept.ru:3000;https://localhost:3000;https://portal.acconcept.ru;https://portal.acconcept.ru:8081;https://mail.acconcept.ru:8081 +CORS_ALLOWED_ORIGINS=https://dev.concept.ru:3000;https://localhost:3000;https://portal.acconcept.ru;https://portal.acconcept.ru:8081;https://mail.acconcept.ru:8081 # File locations