docker(minor): move docker-related files into separate folder
This commit is contained in:
parent
1453008796
commit
1169db7530
|
@ -1,7 +1,8 @@
|
||||||
FROM docker.beryju.org/passbook/base:latest
|
FROM docker.beryju.org/passbook/base:test
|
||||||
|
|
||||||
COPY ./passbook/ /app/passbook
|
COPY ./passbook/ /app/passbook
|
||||||
COPY ./manage.py /app/
|
COPY ./manage.py /app/
|
||||||
|
COPY ./docker/uwsgi.ini /app/
|
||||||
|
|
||||||
USER passbook
|
USER passbook
|
||||||
|
|
||||||
|
|
|
@ -40,10 +40,7 @@ services:
|
||||||
image: docker.beryju.org/passbook/server:${TAG:-test}
|
image: docker.beryju.org/passbook/server:${TAG:-test}
|
||||||
command:
|
command:
|
||||||
- uwsgi
|
- uwsgi
|
||||||
- --http=0.0.0.0:8000
|
- uwsgi.ini
|
||||||
- --wsgi-file=passbook/root/wsgi.py
|
|
||||||
- --master
|
|
||||||
- --enable-threads
|
|
||||||
environment:
|
environment:
|
||||||
- PASSBOOK_REDIS__HOST=redis
|
- PASSBOOK_REDIS__HOST=redis
|
||||||
- PASSBOOK_POSTGRESQL__HOST=postgresql
|
- PASSBOOK_POSTGRESQL__HOST=postgresql
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
[uwsgi]
|
||||||
|
http = 0.0.0.0:8000
|
||||||
|
chdir = /app
|
||||||
|
wsgi-file = passbook/root/wsgi.py
|
||||||
|
processes = 4
|
||||||
|
threads = 2
|
||||||
|
enable-threads = true
|
||||||
|
uid = passbook
|
||||||
|
gid = passbook
|
|
@ -56,10 +56,7 @@ spec:
|
||||||
command:
|
command:
|
||||||
- uwsgi
|
- uwsgi
|
||||||
args:
|
args:
|
||||||
- --http=0.0.0.0:8000
|
- uwsgi.ini
|
||||||
- --wsgi-file=passbook/root/wsgi.py
|
|
||||||
- --master
|
|
||||||
- --enable-threads
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "passbook.fullname" . }}-config
|
name: {{ include "passbook.fullname" . }}-config
|
||||||
|
|
|
@ -14,4 +14,4 @@ FROM nginx:latest
|
||||||
|
|
||||||
COPY --from=static-build /app/static /data/static/
|
COPY --from=static-build /app/static /data/static/
|
||||||
COPY --from=static-build /app/static/robots.txt /data/robots.txt
|
COPY --from=static-build /app/static/robots.txt /data/robots.txt
|
||||||
COPY ./passbook/core/nginx.conf /etc/nginx/nginx.conf
|
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
Reference in New Issue