generated from coop-cloud/example
Initial config
This commit is contained in:
parent
df696a0972
commit
26f00e3b10
|
@ -1,6 +1,9 @@
|
||||||
TYPE=${REPO_NAME_KEBAB}
|
TYPE=statping
|
||||||
|
|
||||||
DOMAIN=${REPO_NAME_KEBAB}.example.com
|
DOMAIN=statping.example.com
|
||||||
## Domain aliases
|
## Domain aliases
|
||||||
#EXTRA_DOMAINS=', `www.${REPO_NAME_KEBAB}.example.com`'
|
#EXTRA_DOMAINS=', `www.statping.example.com`'
|
||||||
LETS_ENCRYPT_ENV=production
|
LETS_ENCRYPT_ENV=production
|
||||||
|
|
||||||
|
SITE_NAME="Statping"
|
||||||
|
SITE_DESCRIPTION="Status monitor"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
zRStatping
|
# Statping
|
||||||
|
|
||||||
Status Page for monitoring your websites and applications with beautiful graphs, analytics, and plugins • https://github.com/statping/statping
|
Status Page for monitoring your websites and applications with beautiful graphs, analytics, and plugins • https://github.com/statping/statping
|
||||||
|
|
||||||
|
|
59
compose.yml
59
compose.yml
|
@ -3,29 +3,48 @@ version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: nginx:1.19.2
|
image: statping/statping:v0.90.74
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
deploy:
|
- backend
|
||||||
restart_policy:
|
depends_on:
|
||||||
condition: on-failure
|
- db
|
||||||
labels:
|
volumes:
|
||||||
- "traefik.enable=true"
|
- statping:/app
|
||||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
#configs:
|
||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
# - source: entrypoint_conf
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
# target: /docker-entrypoint.sh
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
# mode: 0555
|
||||||
## Redirect from EXTRA_DOMAINS to DOMAIN
|
secrets:
|
||||||
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
- db_password
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
environment:
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
VIRTUAL_HOST: localhost
|
||||||
healthcheck:
|
VIRTUAL_PORT: 8080
|
||||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
DB_CONN: sqlite
|
||||||
interval: 30s
|
NAME: ${SITE_NAME}
|
||||||
timeout: 10s
|
DESCRIPTION: ${SITE_DESCRIPTION}
|
||||||
retries: 10
|
|
||||||
start_period: 1m
|
#postgres:
|
||||||
|
# image: postgres:10
|
||||||
|
# networks:
|
||||||
|
# - backend
|
||||||
|
# volumes:
|
||||||
|
# - postgressql:/var/lib/postgresql/data
|
||||||
|
# environment:
|
||||||
|
# POSTGRES_PASSWORD: password123
|
||||||
|
# POSTGRES_USER: statup
|
||||||
|
# POSTGRES_DB: statup
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
statping:
|
||||||
|
#postgresql:
|
||||||
|
|
||||||
|
#configs:
|
||||||
|
# entrypoint_conf:
|
||||||
|
# name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION}
|
||||||
|
# file: entrypoint.sh.tmpl
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
backend:
|
||||||
|
|
Reference in New Issue