add server nginx for compatibility with uwsgi
This commit is contained in:
parent
25fb05fa00
commit
e31354be4b
|
@ -1,5 +1,15 @@
|
|||
version: '3'
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:1.23.3
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf.template
|
||||
ports:
|
||||
- "${NGINX_PORT:-10000}:${NGINX_PORT:-10000}"
|
||||
env_file:
|
||||
- .env
|
||||
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
|
||||
db:
|
||||
image: postgres
|
||||
hostname:
|
||||
|
@ -36,6 +46,7 @@ services:
|
|||
SMTP_EMAIL: ${SMTP_EMAIL}
|
||||
ports:
|
||||
- "${TRYTON_PORT:-8000}:8000"
|
||||
- "8010:8010"
|
||||
volumes:
|
||||
- modules:${DIR_MODULES}
|
||||
- var:/var
|
||||
|
|
Loading…
Reference in New Issue