This commit is contained in:
Senko-san
2026-06-08 12:49:45 +03:00
commit 1b251869c4
21 changed files with 1404 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# -- backend: one image, two roles (API server + arq worker) -------------
api:
image: ${BACKEND_IMAGE}:${MCMA_IMAGE_TAG}
restart: unless-stopped
env_file: .env.deploy
volumes:
- ${MEDIA_HOST_PATH}:${MEDIA_PATH}
- transcode_cache:${TRANSCODE_CACHE_PATH}
@API_PORTS@
@API_DEPENDS@
worker:
image: ${BACKEND_IMAGE}:${MCMA_IMAGE_TAG}
restart: unless-stopped
command: arq app.workers.arq_worker.WorkerSettings
env_file: .env.deploy
volumes:
- ${MEDIA_HOST_PATH}:${MEDIA_PATH}
- transcode_cache:${TRANSCODE_CACHE_PATH}
@WORKER_DEPENDS@