mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-01-18 16:27:25 +01:00
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
# Maintainer: Mickael "PAPAMICA" Asseline
|
|
# Update: 2022-05-23
|
|
|
|
|
|
#& type: 3
|
|
#& title: Dashy
|
|
#& description: Personnal dashboard
|
|
#& note: Website: <a href='https://dashy.to/' target='_blank' rel='noopener'>Dashy.to</a>
|
|
#& categories: SelfHosted, PAPAMICA
|
|
#& platform: linux
|
|
#& logo: https://img.papamica.com/logo/dashy.png
|
|
|
|
#% SERVICE: Name of the service (No spaces or points) [dashy]
|
|
#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps]
|
|
#% URL: Service URL (Example: service.papamica.fr or service.com)
|
|
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
|
|
|
|
# Work with Portainer
|
|
version: "3.8"
|
|
services:
|
|
dashy:
|
|
image: lissy93/dashy:latest
|
|
container_name: $SERVICE
|
|
volumes:
|
|
- $DATA_LOCATION/$SERVICE/conf.yml:/app/public/conf.yml
|
|
environment:
|
|
# - NODE_ENV=production
|
|
- UID=1000
|
|
- GID=1000
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ['CMD', 'node', '/app/services/healthcheck']
|
|
interval: 1m30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
networks:
|
|
- default
|
|
labels:
|
|
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.$SERVICE.rule=Host(`$URL`)"
|
|
- "traefik.http.routers.$SERVICE.tls=true"
|
|
- "traefik.http.routers.$SERVICE.tls.certresolver=http"
|
|
- "traefik.docker.network=$NETWORK"
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: $NETWORK |