enable support for specifying port
parent
7a9e46da7d
commit
2604eb6130
|
@ -7,6 +7,8 @@ services:
|
||||||
container_name: microblogpub
|
container_name: microblogpub
|
||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
restart: always
|
restart: always
|
||||||
|
environment:
|
||||||
|
APP_PORT: 8000
|
||||||
networks:
|
networks:
|
||||||
- nproxy
|
- nproxy
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -5,7 +5,7 @@ logfile_maxbytes=0
|
||||||
pidfile=data/supervisord.pid
|
pidfile=data/supervisord.pid
|
||||||
|
|
||||||
[program:uvicorn]
|
[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
|
numprocs=1
|
||||||
autorestart=true
|
autorestart=true
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
|
|
Loading…
Reference in New Issue