initial
This commit is contained in:
@@ -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@
|
||||
Reference in New Issue
Block a user