add server nginx for compatibility with uwsgi

This commit is contained in:
sinergia 2023-06-02 21:06:28 -05:00
parent 25fb05fa00
commit e31354be4b
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,15 @@
version: '3' version: '3'
services: 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: db:
image: postgres image: postgres
hostname: hostname:
@ -36,6 +46,7 @@ services:
SMTP_EMAIL: ${SMTP_EMAIL} SMTP_EMAIL: ${SMTP_EMAIL}
ports: ports:
- "${TRYTON_PORT:-8000}:8000" - "${TRYTON_PORT:-8000}:8000"
- "8010:8010"
volumes: volumes:
- modules:${DIR_MODULES} - modules:${DIR_MODULES}
- var:/var - var:/var