Refactor docker

This commit is contained in:
IRBorisov 2023-08-11 16:04:26 +03:00
parent 004664a53e
commit 32591263a6
2 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -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