generated from coop-cloud/example
Drop comments and lets run with this as is
This commit is contained in:
parent
26f00e3b10
commit
f17e6ae509
|
@ -1,8 +1,10 @@
|
||||||
TYPE=statping
|
TYPE=statping
|
||||||
|
|
||||||
DOMAIN=statping.example.com
|
DOMAIN=statping.example.com
|
||||||
|
|
||||||
## Domain aliases
|
## Domain aliases
|
||||||
#EXTRA_DOMAINS=', `www.statping.example.com`'
|
#EXTRA_DOMAINS=', `www.statping.example.com`'
|
||||||
|
|
||||||
LETS_ENCRYPT_ENV=production
|
LETS_ENCRYPT_ENV=production
|
||||||
|
|
||||||
SITE_NAME="Statping"
|
SITE_NAME="Statping"
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
See [this wiki page](Ahttps://github.com/statping/statping/wiki/Docker) for more technical Docker related documentation.
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
|
|
||||||
1. Set up Docker Swarm and [`abra`]
|
1. Set up Docker Swarm and [`abra`]
|
||||||
|
|
43
compose.yml
43
compose.yml
|
@ -6,45 +6,28 @@ services:
|
||||||
image: statping/statping:v0.90.74
|
image: statping/statping:v0.90.74
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- backend
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
volumes:
|
volumes:
|
||||||
- statping:/app
|
- statping:/app
|
||||||
#configs:
|
|
||||||
# - source: entrypoint_conf
|
|
||||||
# target: /docker-entrypoint.sh
|
|
||||||
# mode: 0555
|
|
||||||
secrets:
|
|
||||||
- db_password
|
|
||||||
environment:
|
environment:
|
||||||
VIRTUAL_HOST: localhost
|
VIRTUAL_HOST: localhost
|
||||||
VIRTUAL_PORT: 8080
|
VIRTUAL_PORT: 8080
|
||||||
DB_CONN: sqlite
|
DB_CONN: sqlite
|
||||||
NAME: ${SITE_NAME}
|
NAME: ${SITE_NAME}
|
||||||
DESCRIPTION: ${SITE_DESCRIPTION}
|
DESCRIPTION: ${SITE_DESCRIPTION}
|
||||||
|
deploy:
|
||||||
#postgres:
|
update_config:
|
||||||
# image: postgres:10
|
failure_action: rollback
|
||||||
# networks:
|
order: start-first
|
||||||
# - backend
|
labels:
|
||||||
# volumes:
|
- "traefik.enable=true"
|
||||||
# - postgressql:/var/lib/postgresql/data
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||||
# environment:
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
# POSTGRES_PASSWORD: password123
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080"
|
||||||
# POSTGRES_USER: statup
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
# 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:
|
|
||||||
|
volumes:
|
||||||
|
statping:
|
||||||
|
|
Loading…
Reference in New Issue