statping init

master
daniel 4 years ago
parent af2e4ac389
commit 17f1fdfd64
  1. 58
      apps/statping/docker-compose.yml
  2. 10
      apps/statping/env-template

@ -0,0 +1,58 @@
version: '3'
services:
statping:
container_name: statping
image: statping-ng/statping-ng:latest
restart: unless-stopped
security_opt:
- no-new-privileges:true
environment:
DB_CONN: sqlite
API_SECRET: ${SP_APISECRET}
NAME: Statping
DOMAIN: ${SP_HOST}
DESCRIPTION: This is a dev environment with auto reloading!
ADMIN_USER: ${SP_ADMINUSER}
ADMIN_PASSWORD: ${SP_ADMINPW}
PORT: ${SP_PORT}
healthcheck:
test: ["CMD-SHELL", "curl -f ${SP_HOST}/health || false"]
timeout: 2s
interval: 5s
retries: 10
volumes:
- ./cmd:/go/src/github.com/statping-ng/statping-ng/cmd/
- ./core:/go/src/github.com/statping-ng/statping-ng/core/
- ./database:/go/src/github.com/statping-ng/statping-ng/database/
- ./dev:/go/src/github.com/statping-ng/statping-ng/dev/
- ./frontend:/go/src/github.com/statping-ng/statping-ng/frontend/
- ./handlers:/go/src/github.com/statping-ng/statping-ng/handlers/
- ./notifiers:/go/src/github.com/statping-ng/statping-ng/notifiers/
- ./source:/go/src/github.com/statping-ng/statping-ng/source/
- ./types:/go/src/github.com/statping-ng/statping-ng/types/
- ./utils:/go/src/github.com/statping-ng/statping-ng/utils/
labels:
- "traefik.enable=true"
- "traefik.http.routers.statping.entrypoints=http"
- "traefik.http.routers.statping.rule=Host(`${SP_URL}`)"
- "traefik.http.middlewares.statping-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.statping.middlewares=portainer-https-redirect"
- "traefik.http.routers.statping-secure.entrypoints=https"
- "traefik.http.routers.statping-secure.rule=Host(`${SP_URL}`)"
- "traefik.http.routers.statping-secure.tls=true"
- "traefik.http.routers.statping-secure.tls.certresolver=http"
- "traefik.http.routers.statping-secure.service=portainer"
- "traefik.http.services.statping.loadbalancer.server.port=${SP_PORT}"
- "traefik.docker.network=traefik-proxy"
ports:
- 8888:8888
- ${SP_PORT}:${SP_PORT}
networks:
- traefik-proxy
networks:
traefik-proxy:
external: true
name: traefik-proxy

@ -0,0 +1,10 @@
OWNCLOUD_DBUSER=owncloud
OWNCLOUD_DBPW=supersecretpassword
OWNCLOUD_ADMINUSER=owncloud-admin
OWNCLOUD_ADMINPW=supersecretadminpassword
OWNCLOUD_HOST=subdomain.domain.com
OWNCLOUD_LBPORT=8080
MARIADB_SQLROOTPW=supersecretrootpassword
MARIADB_SQLUSER=owncloud
MARIADB_SQLPW=supersecretpassword
Loading…
Cancel
Save