From ff9b7cd84fbfa0bfca333ca2f8ab9dd42829a318 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Sun, 1 Dec 2024 21:50:29 +0100 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 75 ++++++++++++++++++++++++++++++---------------- 1 file changed, 50 insertions(+), 25 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4054566..b277512 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,41 +2,66 @@ networks: traefik_front_network: external: true - back_network_: + back_network_uptimekuma: driver: bridge attachable: true #### SERVICES services: -### hello_world - hello_world: - container_name: gitea-app - hostname: gitea-app - image: hello-world - environment: - restart: always - networks: -# - back_network_gitea - - traefik_front_network + uptime-kuma: + image: louislam/uptime-kuma:1 volumes: + - ./data:/app/data +# - ./server:/app/server +# - ./db:/app/db +# ports: + # : +# - 3001:3001 + restart: unless-stopped + networks: + - traefik_front_network + - back_network_uptimekuma labels: - "traefik.enable=true" - "traefik.docker.network=traefik_front_network" # HTTP - - "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)" - - "traefik.http.routers.hello-world-http.entrypoints=http" - - "traefik.http.routers.hello-world-http.priority=49" + - "traefik.http.routers.uptime-kuma-http.rule=Host(`uptime-kuma.tips-of-mine.com`)" + - "traefik.http.routers.uptime-kuma-http.entrypoints=http" + - "traefik.http.routers.uptime-kuma-http.priority=49" # HTTPS - - "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)" - - "traefik.http.routers.hello-world-https.entrypoints=https" - - "traefik.http.routers.hello-world-https.tls=true" - - "traefik.http.routers.hello-world-https.priority=50" - - "traefik.http.routers.gitea.service=gitea-https-service" + - "traefik.http.routers.uptime-kuma-https.rule=Host(`uptime-kuma.tips-of-mine.com`)" + - "traefik.http.routers.uptime-kuma-https.entrypoints=https" + - "traefik.http.routers.uptime-kuma-https.tls=true" + - "traefik.http.routers.uptime-kuma-https.priority=50" + - "traefik.http.routers.uptime-kuma.service=uptime-kuma-service" # Middleware # Service -# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000" -# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30" + - "traefik.http.services.uptime-kuma-service.loadbalancer.server.port=3001" + +### + msmtpd: + container_name: uptime-kuma-msmtpd + hostname: uptime-kuma-msmtpd + image: crazymax/msmtpd:latest + networks: + - back_network_uptimekuma + environment: + - "TZ=Europe/Paris" + - "PUID=1500" + - "PGID=1500" + - "SMTP_HOST=10.0.4.52" + - "SMTP_PORT=587" + - "SMTP_TLS=on" + - "SMTP_STARTTLS=on" + - "SMTP_TLS_CHECKCERT=off" + - "SMTP_AUTH=on" + - "SMTP_USER=hostinfo@tips-of-mine.fr" + - "SMTP_PASSWORD=P@ssw0rd!12345+" + - "SMTP_DOMAIN=localhost" + - "SMTP_FROM=hostinfo@tips-of-mine.fr" + restart: always + healthcheck: + test: ["CMD-SHELL", "echo EHLO localhost"] + interval: 5s + timeout: 5s + retries: 5