mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-25 20:40:36 +03:00
Refactor docker
This commit is contained in:
parent
004664a53e
commit
32591263a6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user