diff --git a/.env.sample b/.env.sample index ef7db8d..59c75a0 100644 --- a/.env.sample +++ b/.env.sample @@ -1,6 +1,9 @@ -TYPE=${REPO_NAME_KEBAB} +TYPE=statping -DOMAIN=${REPO_NAME_KEBAB}.example.com +DOMAIN=statping.example.com ## Domain aliases -#EXTRA_DOMAINS=', `www.${REPO_NAME_KEBAB}.example.com`' +#EXTRA_DOMAINS=', `www.statping.example.com`' LETS_ENCRYPT_ENV=production + +SITE_NAME="Statping" +SITE_DESCRIPTION="Status monitor" diff --git a/README.md b/README.md index 347d075..aece990 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/compose.yml b/compose.yml index 662a96c..8f95f9d 100644 --- a/compose.yml +++ b/compose.yml @@ -3,29 +3,48 @@ version: "3.8" services: app: - image: nginx:1.19.2 + image: statping/statping:v0.90.74 networks: - proxy - 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}" - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost"] - interval: 30s - timeout: 10s - retries: 10 - start_period: 1m + - 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 networks: proxy: external: true + backend: