diff --git a/.examples/swarm/diun.yml b/.examples/swarm/diun.yml new file mode 100644 index 00000000..7258bf9f --- /dev/null +++ b/.examples/swarm/diun.yml @@ -0,0 +1,24 @@ +version: "3.5" + +services: + diun: + image: crazymax/diun:latest + volumes: + - "./data:/data" + - "/var/run/docker.sock:/var/run/docker.sock" + environment: + - "TZ=Europe/Paris" + - "LOG_LEVEL=info" + - "LOG_JSON=false" + - "DIUN_WATCH_WORKERS=20" + - "DIUN_WATCH_SCHEDULE=*/30 * * * *" + - "DIUN_PROVIDERS_SWARM=true" + deploy: + mode: replicated + replicas: 1 + labels: + - "diun.enable=true" + - "diun.watch_repo=true" + placement: + constraints: + - node.role == manager diff --git a/.examples/swarm/nginx.yml b/.examples/swarm/nginx.yml new file mode 100644 index 00000000..0634cf3a --- /dev/null +++ b/.examples/swarm/nginx.yml @@ -0,0 +1,15 @@ +version: "3.5" + +services: + nginx: + image: nginx + ports: + - target: 80 + published: 80 + protocol: udp + deploy: + mode: replicated + replicas: 2 + labels: + - "diun.enable=true" + - "diun.watch_repo=true"