radicale/compose.yml

37 lines
1.2 KiB
YAML
Raw Normal View History

2021-03-11 08:30:32 +00:00
version: "3.8"
services:
app:
2021-03-11 08:37:11 +00:00
image: tomsquest/docker-radicale:3.0.6.0
2021-03-11 08:30:32 +00:00
networks:
- proxy
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
2021-03-11 08:37:11 +00:00
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5232"
2021-03-11 08:30:32 +00:00
- "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}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
2022-03-26 00:53:17 +00:00
- "coop-cloud.${STACK_NAME}.version=0.1.0+3.0.6.0"
2021-03-11 08:30:32 +00:00
healthcheck:
2021-03-11 08:37:11 +00:00
test: ["CMD", "curl", "-f", "http://localhost:5232"]
2021-03-11 08:30:32 +00:00
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
2021-03-11 08:37:11 +00:00
volumes:
- radicale_data:/data
- radicale_config:/config:ro
2022-03-26 00:53:17 +00:00
2021-03-11 08:30:32 +00:00
networks:
proxy:
external: true
2021-03-11 08:37:11 +00:00
volumes:
radicale_data:
radicale_config: