File tree Expand file tree Collapse file tree 8 files changed +31
-52
lines changed
{{cookiecutter.project_slug}} Expand file tree Collapse file tree 8 files changed +31
-52
lines changed Original file line number Diff line number Diff line change @@ -5,30 +5,11 @@ DOMAIN=localhost
5
5
# DOMAIN=local.dockertoolbox.tiangolo.com
6
6
# DOMAIN=localhost.tiangolo.com
7
7
# DOMAIN=dev.{{cookiecutter.domain_main}}
8
- BACKEND_CORS_ORIGINS = {{cookiecutter.backend_cors_origins}}
9
- PROJECT_NAME = {{cookiecutter.project_name}}
10
- SECRET_KEY = {{cookiecutter.secret_key}}
11
- FIRST_SUPERUSER = {{cookiecutter.first_superuser}}
12
- FIRST_SUPERUSER_PASSWORD = {{cookiecutter.first_superuser_password}}
13
-
14
- USERS_OPEN_REGISTRATION = False
15
8
16
9
TRAEFIK_TAG = {{cookiecutter.traefik_constraint_tag}}
17
10
TRAEFIK_PUBLIC_NETWORK = {{cookiecutter.traefik_public_network}}
18
11
TRAEFIK_PUBLIC_TAG = {{cookiecutter.traefik_public_constraint_tag}}
19
12
20
- POSTGRES_SERVER = db
21
- POSTGRES_USER = postgres
22
- POSTGRES_PASSWORD = {{cookiecutter.postgres_password}}
23
- POSTGRES_DB = app
24
-
25
- PG_ADMIN_DEFAULT_USER = {{cookiecutter.pgadmin_default_user}}
26
- PG_ADMIN_DEFAULT_PASSWORD = {{cookiecutter.pgadmin_default_user_password}}
27
-
28
- FLOWER_BASIC_AUTH = {{cookiecutter.flower_auth}}
29
-
30
- SENTRY_DSN = {{cookiecutter.sentry_dsn}}
31
-
32
13
DOCKER_IMAGE_BACKEND = {{cookiecutter.docker_image_backend}}
33
14
DOCKER_IMAGE_CELERYWORKER = {{cookiecutter.docker_image_celeryworker}}
34
15
DOCKER_IMAGE_FRONTEND = {{cookiecutter.docker_image_frontend}}
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ services:
4
4
image : fenglc/pgadmin4
5
5
depends_on :
6
6
- db
7
- environment :
8
- - DEFAULT_USER=${PG_ADMIN_DEFAULT_USER}
9
- - DEFAULT_PASSWORD=${PG_ADMIN_DEFAULT_PASSWORD}
7
+ env_file :
8
+ - env-pgadmin.env
10
9
swagger-ui :
11
10
image : swaggerapi/swagger-ui
12
11
environment :
@@ -17,5 +16,5 @@ services:
17
16
- /var/run/docker.sock:/var/run/docker.sock
18
17
flower :
19
18
image : totem/celery-flower-docker
20
- environment :
21
- - FLOWER_BASIC_AUTH=${FLOWER_BASIC_AUTH}
19
+ env_file :
20
+ - env-flower.env
Original file line number Diff line number Diff line change 1
1
version : ' 3'
2
2
services :
3
3
db :
4
+ env_file :
5
+ - env-postgres.env
4
6
environment :
5
- - POSTGRES_DB=app
6
- - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
7
7
- PGDATA=/var/lib/postgresql/data/pgdata
8
8
backend :
9
+ env_file :
10
+ - env-backend.env
11
+ - env-postgres.env
9
12
environment :
10
13
- SERVER_NAME=${DOMAIN}
11
- - SECRET_KEY=${SECRET_KEY}
12
- - BACKEND_CORS_ORIGINS=${BACKEND_CORS_ORIGINS}
13
- - PROJECT_NAME=${PROJECT_NAME}
14
- - SENTRY_DSN=${SENTRY_DSN}
15
- - POSTGRES_SERVER=${POSTGRES_SERVER}
16
- - POSTGRES_USER=${POSTGRES_USER}
17
- - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
18
- - POSTGRES_DB=${POSTGRES_DB}
19
- - FIRST_SUPERUSER=${FIRST_SUPERUSER}
20
- - FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD}
21
- - USERS_OPEN_REGISTRATION=${USERS_OPEN_REGISTRATION}
22
14
celeryworker :
23
- environment :
24
- - SENTRY_DSN=${SENTRY_DSN}
25
- - POSTGRES_SERVER=${POSTGRES_SERVER}
26
- - POSTGRES_USER=${POSTGRES_USER}
27
- - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
28
- - POSTGRES_DB=${POSTGRES_DB}
29
- - FIRST_SUPERUSER=${FIRST_SUPERUSER}
30
- - FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD}
31
- - USERS_OPEN_REGISTRATION=${USERS_OPEN_REGISTRATION}
15
+ env_file :
16
+ - env-backend.env
17
+ - env-postgres.env
Original file line number Diff line number Diff line change @@ -5,11 +5,8 @@ services:
5
5
context : ./backend
6
6
dockerfile : tests.dockerfile
7
7
command : bash -c "while true; do sleep 1; done"
8
+ env_file :
9
+ - env-backend.env
10
+ - env-postgres.env
8
11
environment :
9
12
- SERVER_NAME=backend
10
- - POSTGRES_SERVER=${POSTGRES_SERVER}
11
- - POSTGRES_USER=${POSTGRES_USER}
12
- - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
13
- - POSTGRES_DB=${POSTGRES_DB}
14
- - FIRST_SUPERUSER=${FIRST_SUPERUSER}
15
- - FIRST_SUPERUSER_PASSWORD=${FIRST_SUPERUSER_PASSWORD}
Original file line number Diff line number Diff line change
1
+ BACKEND_CORS_ORIGINS = {{cookiecutter.backend_cors_origins}}
2
+ PROJECT_NAME = {{cookiecutter.project_name}}
3
+ SECRET_KEY = {{cookiecutter.secret_key}}
4
+ FIRST_SUPERUSER = {{cookiecutter.first_superuser}}
5
+ FIRST_SUPERUSER_PASSWORD = {{cookiecutter.first_superuser_password}}
6
+
7
+ USERS_OPEN_REGISTRATION = False
8
+
9
+ SENTRY_DSN = {{cookiecutter.sentry_dsn}}
Original file line number Diff line number Diff line change
1
+ FLOWER_BASIC_AUTH = {{cookiecutter.flower_auth}}
Original file line number Diff line number Diff line change
1
+ PG_ADMIN_DEFAULT_USER = {{cookiecutter.pgadmin_default_user}}
2
+ PG_ADMIN_DEFAULT_PASSWORD = {{cookiecutter.pgadmin_default_user_password}}
Original file line number Diff line number Diff line change
1
+ POSTGRES_SERVER = db
2
+ POSTGRES_USER = postgres
3
+ POSTGRES_PASSWORD = {{cookiecutter.postgres_password}}
4
+ POSTGRES_DB = app
You can’t perform that action at this time.
0 commit comments