Actualiser docker-compose.yml
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 53s

This commit is contained in:
Hubert Cornet 2025-04-19 17:41:25 +02:00
parent 190d52302b
commit c2143890cb

View File

@ -1,42 +1,87 @@
#### NETWORKS #### networks
networks: networks:
traefik_front_network: traefik_front_network:
external: true external: true
back_network_: back_network_checkmate:
driver: bridge driver: bridge
attachable: true attachable: true
#### SERVICES #### services
services: services:
### hello_world ### client
hello_world: client:
container_name: gitea-app image: bluewaveuptime/uptime_client:latest
hostname: gitea-app
image: hello-world
environment:
restart: always restart: always
environment:
UPTIME_APP_API_BASE_URL: "https://checkmate.tips-of-mine.com/api/v1"
depends_on:
- server
networks: networks:
# - back_network_gitea
- traefik_front_network - traefik_front_network
volumes: - back_network_checkmate
labels: labels:
- "com.centurylinklabs.watchtower.enable=true"
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik_front_network" - "traefik.docker.network=traefik_front_network"
# HTTP # HTTP
- "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)" - "traefik.http.routers.checkmate-http.rule=Host(`checkmate.tips-of-mine.com`)"
- "traefik.http.routers.hello-world-http.entrypoints=http" - "traefik.http.routers.checkmate-http.entrypoints=http"
- "traefik.http.routers.hello-world-http.priority=49" - "traefik.http.routers.checkmate-http.priority=49"
# HTTPS # HTTPS
- "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)" - "traefik.http.routers.checkmate-https.rule=Host(`checkmate.tips-of-mine.com`)"
- "traefik.http.routers.hello-world-https.entrypoints=https" - "traefik.http.routers.checkmate-https.entrypoints=https"
- "traefik.http.routers.hello-world-https.tls=true" - "traefik.http.routers.checkmate-https.priority=50"
- "traefik.http.routers.hello-world-https.priority=50" - "traefik.http.routers.checkmate-https.service=checkmate-service"
- "traefik.http.routers.gitea.service=gitea-https-service" - "traefik.http.routers.checkmate-https.tls=true"
- "traefik.http.routers.checkmate.middlewares=checkmate-https-redirect"
# Middleware # Middleware
- "traefik.http.middlewares.checkmate-https-redirect.redirectscheme.scheme=https"
# Service # Service
# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000" - "traefik.http.services.checkmate-service.loadbalancer.server.port=80"
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me" ### server
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar" server:
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10" image: bluewaveuptime/uptime_server:latest
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30" restart: always
ports:
- "5000:5000"
depends_on:
- redis
- mongodb
environment:
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
- REDIS_HOST=redis
- PAGESPEED_API_KEY=YOUR_API_KEY
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- back_network_checkmate
### REDIS
redis:
image: bluewaveuptime/uptime_redis:latest
restart: always
ports:
- "6379:6379"
volumes:
- ./redis/data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
start_period: 5s
networks:
- back_network_checkmate
### MONGODB
mongodb:
image: bluewaveuptime/uptime_database_mongo:latest
restart: always
volumes:
- ./mongo/data:/data/db
command: ["mongod", "--quiet"]
ports:
- "27017:27017"
networks:
- back_network_checkmate