-
Andrew Kapuscinski authored
- made our volume mounts dynamic with ENV variable - changed our test deployment trigger with git tags as end-of-sprint-[0-9]+
Andrew Kapuscinski authored- made our volume mounts dynamic with ENV variable - changed our test deployment trigger with git tags as end-of-sprint-[0-9]+
docker-compose.dev.yml 3.02 KiB
version: '3.8'
services:
workflow:
image: marconi.aoc.nrao.edu/workspaces/workflow:${TAG}
ports:
- target: 3456
published: 3456
protocol: tcp
mode: host
secrets:
- source: dsoc_${ENV}_secrets
target: dsoc-${ENV}.properties
environment:
CAPO_PATH: /run/secrets
CAPO_PROFILE: dsoc-${ENV}
deploy:
placement:
constraints:
- "node.labels.node_env==${ENV}"
restart_policy:
condition: on-failure
max_attempts: 3
window: 5s
update_config:
parallelism: 2
delay: 5s
order: stop-first
failure_action: rollback
rollback_config:
parallelism: 0
order: stop-first
volumes:
- /lustre/aoc/cluster/pipeline/dsoc-${ENV}/downloads/nrao:/lustre/aoc/cluster/pipeline/dsoc-${ENV}/downloads/nrao
capability:
image: marconi.aoc.nrao.edu/workspaces/capability:${TAG}
ports:
- target: 3457
published: 3457
protocol: tcp
mode: host
secrets:
- source: dsoc_${ENV}_secrets
target: dsoc-${ENV}.properties
environment:
CAPO_PATH: /run/secrets
CAPO_PROFILE: dsoc-${ENV}
deploy:
placement:
constraints:
- "node.labels.node_env==${ENV}"
restart_policy:
condition: on-failure
max_attempts: 3
window: 5s
update_config:
parallelism: 2
delay: 5s
order: stop-first
failure_action: rollback
rollback_config:
parallelism: 0
order: stop-first
notification:
image: marconi.aoc.nrao.edu/workspaces/notification:${TAG}
ports:
- target: 3458
published: 3458