abra-test-recipe/compose.yml

58 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2023-09-07 12:51:27 +00:00
---
version: "3.8"
services:
app:
2023-09-25 09:43:38 +00:00
image: nginx:1.21.0
2023-10-09 09:49:04 +00:00
environment:
- TEST_ENV_STANZA=DING # should be removed
2023-09-07 12:51:27 +00:00
networks:
- proxy
2023-09-19 10:10:53 +00:00
volumes:
- test-volume:/var/www
2023-09-19 09:07:53 +00:00
secrets:
2023-09-25 07:31:33 +00:00
- test_pass_one
- test_pass_two
2023-09-07 12:51:27 +00:00
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
2023-09-20 07:51:58 +00:00
2025-01-09 12:02:17 +00:00
- "coop-cloud.${STACK_NAME}.version=0.3.1+1.21.0"
2023-09-07 17:46:53 +00:00
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
2023-09-20 07:51:58 +00:00
- "backupbot.backup=true"
2023-09-07 13:16:21 +00:00
- "backupbot.backup.path=/etc/nginx/"
2023-09-07 16:19:04 +00:00
- "backupbot.backup.pre-hook=echo 'foo'"
- "backupbot.backup.post-hook=echo 'bar'"
2023-09-20 07:51:58 +00:00
- "backupbot.restore=true"
- "backupbot.restore.pre-hook=echo 'baz'"
- "backupbot.restore.post-hook=echo 'bing'"
2023-09-07 12:51:27 +00:00
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
2023-09-19 09:07:53 +00:00
secrets:
2023-09-25 07:31:33 +00:00
test_pass_one:
2023-09-19 09:07:53 +00:00
external: true
2023-10-09 09:49:04 +00:00
name: ${STACK_NAME}_test_pass_one_${SECRET_TEST_PASS_ONE_VERSION} # should be removed
2023-09-25 07:31:33 +00:00
test_pass_two:
2023-09-24 22:38:50 +00:00
external: true
2023-09-25 07:31:33 +00:00
name: ${STACK_NAME}_test_pass_two_${SECRET_TEST_PASS_TWO_VERSION}
2023-09-19 09:07:53 +00:00
2023-09-19 10:10:53 +00:00
volumes:
test-volume:
2023-09-07 12:51:27 +00:00
networks:
proxy:
external: true