enable support for specifying port

main
Dominik Madarász 2023-01-12 21:22:35 +00:00
parent 7a9e46da7d
commit 2604eb6130
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@ services:
container_name: microblogpub
user: 1000:1000
restart: always
environment:
APP_PORT: 8000
networks:
- nproxy
volumes:

View File

@ -5,7 +5,7 @@ logfile_maxbytes=0
pidfile=data/supervisord.pid
[program:uvicorn]
command=uvicorn app.main:app --no-server-header --host 0.0.0.0
command=uvicorn app.main:app --no-server-header --host 0.0.0.0 --port %(ENV_APP_PORT)s
numprocs=1
autorestart=true
redirect_stderr=true