53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: git.coopcloud.tech/coop-cloud/fluffychat:v1.7.1
|
|
environment:
|
|
- DOMAIN
|
|
- FLUFFY_APPLICATION_NAME
|
|
- FLUFFY_DEFAULT_HOMESERVER
|
|
networks:
|
|
- proxy
|
|
configs:
|
|
- source: config_json
|
|
target: /usr/share/nginx/html/config.json
|
|
- source: fixup_sh
|
|
target: /docker-entrypoint.d/00-fixup.sh
|
|
mode: 0555
|
|
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}"
|
|
## 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}"
|
|
- "coop-cloud.${STACK_NAME}.version=1.0.0+v1.7.1"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 1m
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
configs:
|
|
config_json:
|
|
name: ${STACK_NAME}_config_json_${CONFIG_JSON_VERSION}
|
|
file: config.json.tmpl
|
|
template_driver: golang
|
|
fixup_sh:
|
|
name: ${STACK_NAME}_fixup_sh_${FIXUP_SH_VERSION}
|
|
file: fixup.sh
|
|
|