21 lines
597 B
YAML
21 lines
597 B
YAML
# -- 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@
|