infrastructure/ansible/roles/docker/files/statping/docker-compose.yml

24 lines
604 B
YAML
Raw Normal View History

2020-03-08 18:12:12 +00:00
version: '2.3'
2020-03-08 16:41:13 +00:00
services:
statping:
image: hunterlong/statping:v0.80.70
container_name: statping
restart: unless-stopped
volumes:
- ./statping:/app
labels:
- "traefik.enable=true"
- "traefik.http.routers.statping.rule=Host(`stats.theorangeone.net`)"
- "traefik.http.routers.statping.tls=true"
- "traefik.http.routers.statping.tls.certresolver=le"
db:
image: postgres:12-alpine
restart: unless-stopped
volumes:
- ./postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=statping
- POSTGRES_USER=statping