steveternet/nuc/dashy/docker-compose.yml

38 lines
868 B
YAML

version: '3.8'
services:
dashy:
image: lissy93/dashy:latest
container_name: dashy
restart: unless-stopped
labels:
- "traefik.enable=true"
- 'traefik.http.routers.dashy.rule=Host(`dashy.${DOMAIN_ROOT}`) || Host(`dash.${DOMAIN_ROOT}`) || Host(`${DOMAIN_ROOT}`)'
- "traefik.http.services.dashy.loadbalancer.server.port=80"
- 'traefik.http.routers.dashy.middlewares=authelia@docker'
volumes:
- ./dashy.yml:/app/public/conf.yml
environment:
- DOMAIN_ROOT=${DOMAIN_ROOT}
- NODE_ENV=production
- UID=${USER_ID}
- GID=${GROUP_ID}
# Configure healthchecks
healthcheck:
test: ['CMD', 'node', '/app/services/healthcheck']
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- web
networks:
web:
external: true