fix: restart production containers automatically
Some checks failed
CI / deploy (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled

This commit is contained in:
2026-09-15 17:27:27 +03:00
parent aa43da2857
commit e4e64b92c1
4 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
services:
postgres:
image: postgres:16-alpine
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB:-miem_workers}
POSTGRES_USER: ${POSTGRES_USER:-miem}
@@ -15,6 +16,7 @@ services:
api:
build: .
restart: always
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
env_file: .env
environment:
@@ -27,6 +29,7 @@ services:
worker:
build: .
restart: always
command: python -m app.worker
env_file: .env
environment: