fix ALLOWED_HOST, Volume for db.sqlite

This commit is contained in:
clemens 2017-12-14 11:38:13 +01:00
parent 02c7fe4d3e
commit 7be7304b85
3 changed files with 5 additions and 3 deletions

View File

@ -5,5 +5,5 @@ RUN apk upgrade --update && \
ADD ["ofu_app", "/app"]
WORKDIR /app
EXPOSE 80
VOLUME ["/app/db.sqlite"]
VOLUME ["/data"]
CMD ["python3", "manage.py", "runserver", "0.0.0.0:80"]

View File

@ -6,6 +6,8 @@ services:
build: .
ports:
- "8080:80"
volumes:
- ./data:/data
# basta_server_db:
# image: postgres:alpine

View File

@ -23,7 +23,7 @@ SECRET_KEY = '7tm($-7tz!co8762!)ptmj%)80)qa^z0odee*8-!be!i(a!p4j'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['mg-server.ddns.net', 'localhost', '127.0.0.1', '192.168.100.8', '141.13.129.250']
ALLOWED_HOSTS = ['mg-server.ddns.net', 'localhost', '127.0.0.1', 'app.wiai.de']
# Application definition
@ -98,7 +98,7 @@ WSGI_APPLICATION = 'core.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'NAME': os.path.join('/data', 'db.sqlite3'),
}
}