-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the docker-compose files (#949)
- add new dk-cp files for each environment + a base file - update Dockerfile, Makefile to the new changes - add a dev configuration in the api/run - update the back-end settings
- Loading branch information
1 parent
4ea0382
commit 2866d4b
Showing
32 changed files
with
486 additions
and
332 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ ENVIRONMENT=development | |
API_PORT=8030 | ||
SECRET_KEY=test | ||
|
||
RUN_MIGRATION=yes | ||
RUN_COMPILEMESSAGES=yes | ||
RUN_LOAD_DUMMY_DATA=no | ||
RUN_COLLECT_STATIC=no | ||
RUN_DEV_SERVER=yes | ||
RUN_MIGRATION=True | ||
RUN_COMPILE_MESSAGES=True | ||
RUN_COLLECT_STATIC=False | ||
RUN_LOAD_INITIAL_DATA=False | ||
RUN_CREATE_SUPER_USER=True | ||
|
||
# django | ||
DEBUG=True | ||
|
@@ -25,10 +25,8 @@ NO_REPLY_EMAIL= | |
DEFAULT_FROM_EMAIL= | ||
|
||
# admin | ||
[email protected] | ||
SUPER_ADMIN_PASS=a | ||
SUPER_ADMIN_FIRST_NAME=abc | ||
SUPER_ADMIN_LAST_NAME=dee | ||
[email protected] | ||
DJANGO_ADMIN_PASSWORD=a | ||
|
||
# database | ||
POSTGRES_USER=postgres | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,50 @@ | ||
# api deployment | ||
ENVIRONMENT=production | ||
API_PORT=8030 | ||
SECRET_KEY= | ||
SECRET_KEY=test | ||
|
||
RUN_MIGRATION=yes | ||
RUN_COMPILEMESSAGES=yes | ||
RUN_LOAD_DUMMY_DATA=no | ||
RUN_COLLECT_STATIC=yes | ||
RUN_DEV_SERVER=no | ||
RUN_MIGRATION=True | ||
RUN_COMPILE_MESSAGES=True | ||
RUN_COLLECT_STATIC=True | ||
RUN_LOAD_INITIAL_DATA=False | ||
RUN_CREATE_SUPER_USER=True | ||
|
||
# django | ||
DEBUG=False | ||
ENABLE_DEBUG_TOOLBAR=False | ||
|
||
ALLOWED_HOSTS=localhost | ||
CSRF_TRUSTED_ORIGINS=http://localhost | ||
CORS_ALLOWED_ORIGINS=http://localhost | ||
CORS_ALLOWED_ORIGIN_REGEXES=http://localhost* | ||
|
||
SITE_URL= | ||
EMAIL_HOST= | ||
EMAIL_PORT= | ||
EMAIL_PORT=25 | ||
EMAIL_HOST_USER= | ||
EMAIL_HOST_PASSWORD= | ||
EMAIL_USE_TLS= | ||
EMAIL_USE_SSL= | ||
EMAIL_USE_TLS=False | ||
EMAIL_USE_SSL=False | ||
|
||
NO_REPLY_EMAIL= | ||
DEFAULT_FROM_EMAIL= | ||
|
||
ALLOWED_HOSTS=localhost | ||
CSRF_TRUSTED_ORIGINS=http://localhost | ||
CORS_ALLOWED_ORIGINS=http://localhost | ||
CORS_ALLOWED_ORIGIN_REGEXES=http://localhost* | ||
|
||
# admin | ||
SUPER_ADMIN_EMAIL= | ||
SUPER_ADMIN_PASS= | ||
SUPER_ADMIN_FIRST_NAME= | ||
SUPER_ADMIN_LAST_NAME= | ||
[email protected] | ||
DJANGO_ADMIN_PASSWORD=a | ||
|
||
# database | ||
POSTGRES_USER= | ||
POSTGRES_PASSWORD= | ||
POSTGRES_DB= | ||
DATABASE_URL=postgres://user:password@netloc/database | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=secret | ||
POSTGRES_DB=seismic_site | ||
DATABASE_URL=postgres://postgres:secret@db/postgres | ||
|
||
GUNICORN_PORT=5000 | ||
GUNICORN_WORKERS=10 | ||
BACKGROUND_WORKERS=2 | ||
GUNICORN_WORKERS=2 | ||
|
||
# client | ||
REACT_APP_DJANGO_SITE_URL= | ||
REACT_APP_DJANGO_PORT= | ||
REACT_APP_DJANGO_SITE_URL=http://localhost | ||
REACT_APP_DJANGO_PORT=8030 | ||
REACT_APP_DJANGO_API_ENDPOINT=api/v1 | ||
|
||
# external api keys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ api/public/* | |
|
||
# dotenv environment variables file | ||
.env | ||
.env.dev | ||
.env.test | ||
.env.prod | ||
.env.* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.