File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ ADD manage.py deploy/requirements.txt deploy/settings.py setup.py urls.py deploy
6
6
ADD silverstrike /app/silverstrike
7
7
8
8
# install deps
9
- RUN apt-get update -y && apt-get install -y gcc libmariadb-dev python3-dev libffi-dev && \
10
- pip install --no-cache-dir -r requirements.txt && python setup.py install && apt-get remove -y gcc && apt-get autoremove -y
9
+ RUN apt-get update -y && apt-get install -y gcc libmariadb-dev python3-dev libffi-dev pkg-config && \
10
+ pip install --no-cache-dir -r requirements.txt && python setup.py install && apt-get remove -y gcc pkg-config && apt-get autoremove -y
11
11
12
12
# configure uwsgi and django
13
13
ENV DJANGO_SETTINGS_MODULE=settings UWSGI_WSGI_FILE=wsgi.py UWSGI_HTTP=:8000 UWSGI_MASTER=1 UWSGI_WORKERS=2 UWSGI_THREADS=8 UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy
Original file line number Diff line number Diff line change 170
170
'()' : 'django.utils.log.RequireDebugTrue' ,
171
171
}
172
172
},
173
+ 'django' : {
174
+ 'handlers' : ['console' ],
175
+ 'propagate' : True ,
176
+ 'level' : 'ERROR'
177
+ },
173
178
'handlers' : {
174
179
'console' : {
175
180
'level' : 'DEBUG' ,
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ services:
6
6
dockerfile : Dockerfile
7
7
restart : always
8
8
environment :
9
- # - SECRET_KEY=REPLACE_ME
9
+ - SECRET_KEY=REPLACE_ME # replace this with a randomly generated value. Especially if running in production
10
10
- DATABASE_URL=sqlite:////data/db.sqlite3
11
11
# - DATABASE_URL=mysql://agsuser:agspassword@mariadb/agsdb
12
12
# - DATABASE_URL=postgres://agsuser:rootpassword@postgresdb/agsdb
13
- - ALLOWED_HOST=example.com
14
- - CSRF_TRUSTED_ORIGIN=https ://example.com
13
+ - ALLOWED_HOST=localhost # replace with used hostname
14
+ - CSRF_TRUSTED_ORIGIN=http ://localhost:21000 # replace with used origin
15
15
ports :
16
16
- " 21000:8000"
17
17
volumes :
You can’t perform that action at this time.
0 commit comments