connect/supervisord.conf
2025-03-18 20:32:17 +05:00

28 lines
625 B
Plaintext

[supervisord]
[program:api]
environment=
APP_HOST=http://127.0.0.1,
APP_PORT=8000,
PYTHONUNBUFFERED=1,
ENV=prod,
MYSQL_DB=connect_test,
MYSQL_HOST=localhost,
MYSQL_USER=connect,
MYSQL_PORT=3306,
MYSQL_PASSWORD=%(ENV_MYSQL_PASSWORD)s,
BROKER_PROTOCOL=amqp,
BROKER_HOST=localhost,
BROKER_USER=guest,
BROKER_PORT=5672,
BROKER_PASSWORD=guest,
BROKER_RABBITMQ_VHOST=/
command=bash -c 'cd api; poetry run python3 -m api'
numprocs=1
process_name=uvicorn-%(process_num)d
stdout_logfile=api.out.log
stderr_logfile=api.err.log
autostart=true
autorestart=true
startretries=5