diff --git a/.env.sample b/.env.sample index 59c75a0..ca0aaff 100644 --- a/.env.sample +++ b/.env.sample @@ -1,8 +1,10 @@ TYPE=statping DOMAIN=statping.example.com + ## Domain aliases #EXTRA_DOMAINS=', `www.statping.example.com`' + LETS_ENCRYPT_ENV=production SITE_NAME="Statping" diff --git a/README.md b/README.md index aece990..a58869d 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ 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 1. Set up Docker Swarm and [`abra`] diff --git a/compose.yml b/compose.yml index 8f95f9d..131af80 100644 --- a/compose.yml +++ b/compose.yml @@ -6,45 +6,28 @@ services: image: statping/statping:v0.90.74 networks: - proxy - - backend - depends_on: - - db volumes: - statping:/app - #configs: - # - source: entrypoint_conf - # target: /docker-entrypoint.sh - # mode: 0555 - secrets: - - db_password environment: VIRTUAL_HOST: localhost VIRTUAL_PORT: 8080 DB_CONN: sqlite NAME: ${SITE_NAME} DESCRIPTION: ${SITE_DESCRIPTION} - - #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 + 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}" networks: proxy: external: true - backend: + +volumes: + statping: