adjust worker for mysql, add more stable background process
This commit is contained in:
@@ -17,6 +17,23 @@ services:
|
||||
- PYTHONUNBUFFERED=1
|
||||
ports:
|
||||
- 127.0.0.1:80:80
|
||||
worker:
|
||||
image: container-registry.infra.dubyatp.xyz/bellscheduler/app:latest-testing
|
||||
restart: always
|
||||
entrypoint: python3
|
||||
command: "-m worker"
|
||||
environment:
|
||||
- MYSQL_USER=root
|
||||
- MYSQL_PASSWORD=notasecuresecretkeyonlyuseforlocaldevelopment
|
||||
- MYSQL_HOST=db
|
||||
- MYSQL_PORT=3306
|
||||
- MYSQL_DB=bellscheduler
|
||||
- SECRET_KEY=notasecuresecretkeyonlyuseforlocaldevelopment
|
||||
- NODE_NAME=local
|
||||
- POD_NAME=local
|
||||
- FLASK_ENV=development
|
||||
- FLASK_DEBUG=1
|
||||
- PYTHONUNBUFFERED=1
|
||||
db:
|
||||
image: mariadb:10.7.8-focal
|
||||
restart: always
|
||||
|
Reference in New Issue
Block a user