Actualiser docker-compose.yml
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 53s
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 53s
This commit is contained in:
parent
190d52302b
commit
c2143890cb
@ -1,42 +1,87 @@
|
||||
#### NETWORKS
|
||||
#### networks
|
||||
networks:
|
||||
traefik_front_network:
|
||||
external: true
|
||||
back_network_:
|
||||
back_network_checkmate:
|
||||
driver: bridge
|
||||
attachable: true
|
||||
|
||||
#### SERVICES
|
||||
#### services
|
||||
services:
|
||||
### hello_world
|
||||
hello_world:
|
||||
container_name: gitea-app
|
||||
hostname: gitea-app
|
||||
image: hello-world
|
||||
environment:
|
||||
### client
|
||||
client:
|
||||
image: bluewaveuptime/uptime_client:latest
|
||||
restart: always
|
||||
environment:
|
||||
UPTIME_APP_API_BASE_URL: "https://checkmate.tips-of-mine.com/api/v1"
|
||||
depends_on:
|
||||
- server
|
||||
networks:
|
||||
# - back_network_gitea
|
||||
- traefik_front_network
|
||||
volumes:
|
||||
- back_network_checkmate
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
- "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.checkmate-http.rule=Host(`checkmate.tips-of-mine.com`)"
|
||||
- "traefik.http.routers.checkmate-http.entrypoints=http"
|
||||
- "traefik.http.routers.checkmate-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.checkmate-https.rule=Host(`checkmate.tips-of-mine.com`)"
|
||||
- "traefik.http.routers.checkmate-https.entrypoints=https"
|
||||
- "traefik.http.routers.checkmate-https.priority=50"
|
||||
- "traefik.http.routers.checkmate-https.service=checkmate-service"
|
||||
- "traefik.http.routers.checkmate-https.tls=true"
|
||||
- "traefik.http.routers.checkmate.middlewares=checkmate-https-redirect"
|
||||
# Middleware
|
||||
- "traefik.http.middlewares.checkmate-https-redirect.redirectscheme.scheme=https"
|
||||
# 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.checkmate-service.loadbalancer.server.port=80"
|
||||
|
||||
### server
|
||||
server:
|
||||
image: bluewaveuptime/uptime_server:latest
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user