Include database file properly
This commit is contained in:
parent
3b26d413a6
commit
5995ded170
|
@ -96,7 +96,7 @@ WSGI_APPLICATION = "app.wsgi.application"
|
|||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": BASE_DIR / "db.sqlite3",
|
||||
"NAME": "/conf/db.sqlite3",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ services:
|
|||
build: ${PORTAINER_GIT_DIR}/docker/prod
|
||||
volumes:
|
||||
- ${PORTAINER_GIT_DIR}:/code
|
||||
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
||||
- ${APP_DATABASE_FILE}:/conf/db.sqlite3
|
||||
#ports:
|
||||
# - "8000:8000" # uwsgi socket
|
||||
env_file:
|
||||
|
@ -27,7 +27,7 @@ services:
|
|||
command: sh -c '. /venv/bin/activate && python manage.py migrate --noinput'
|
||||
volumes:
|
||||
- ${PORTAINER_GIT_DIR}:/code
|
||||
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
||||
- ${APP_DATABASE_FILE}:/conf/db.sqlite3
|
||||
env_file:
|
||||
- ../stack.env
|
||||
|
||||
|
@ -37,7 +37,7 @@ services:
|
|||
command: sh -c '. /venv/bin/activate && python manage.py collectstatic --noinput'
|
||||
volumes:
|
||||
- ${PORTAINER_GIT_DIR}:/code
|
||||
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
||||
- ${APP_DATABASE_FILE}:/conf/db.sqlite3
|
||||
env_file:
|
||||
- ../stack.env
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ server {
|
|||
}
|
||||
|
||||
location / {
|
||||
include /etc/nginx/uwsgi_params; # the uwsgi_params file you installed
|
||||
proxy_pass http://django;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Reference in New Issue