forked from coop-cloud/statping
39 lines
1010 B
YAML
39 lines
1010 B
YAML
version: "3.8"
|
|
services:
|
|
app:
|
|
image: ghcr.io/statping-ng/statping-ng:0.92
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- statping:/app
|
|
environment:
|
|
HOST: localhost
|
|
PORT: 8080
|
|
DB_CONN: sqlite
|
|
NAME: ${SITE_NAME}
|
|
DESCRIPTION: ${SITE_DESCRIPTION}
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
order: start-first
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
- "coop-cloud.${STACK_NAME}.version=0.1.1+v0.90.78"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-s", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
retries: 3
|
|
start_period: 10s
|
|
timeout: 10s
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
statping:
|