-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
62 lines (58 loc) · 1.87 KB
/
Copy pathcompose.yaml
File metadata and controls
62 lines (58 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
services:
traefik:
image: traefik:v2.11 # <--- UPDATED: Fixes the "Client Version" crash
container_name: traefik
command:
- "--api.insecure=true" # Dashboard enabled on 8080 (optional)
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
# We removed the HTTPS/CertResolver commands because Cloudflare handles SSL
ports:
- "80:80"
# - "443:443" <--- Commented out: Cloudflare talks to us on Port 80
- "8080:8080" # Traefik Dashboard (optional)
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- webbeat-net
restart: unless-stopped
mongodb:
image: mongo:latest
container_name: webbeat-mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASS}
MONGO_INITDB_DATABASE: ${MONGO_DB_NAME}
volumes:
- mongodb_data:/data/db
networks:
- webbeat-net
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
webbeat:
image: ghcr.io/webbeat-system/webbeat:latest
container_name: webbeat-app
restart: unless-stopped
depends_on:
mongodb:
condition: service_healthy
environment:
SPRING_DATA_MONGODB_URI: mongodb://${MONGO_ROOT_USER}:${MONGO_ROOT_PASS}@mongodb:27017/${MONGO_DB_NAME}?authSource=admin
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
TELEGRAM_CHAT: ${TELEGRAM_CHAT}
labels:
- "traefik.enable=true"
# ROUTING RULE: Listen for your ACTUAL domain
- "traefik.http.routers.webbeat.rule=Host(`webbeat.dev`)"
- "traefik.http.routers.webbeat.entrypoints=web"
networks:
- webbeat-net
volumes:
mongodb_data:
networks:
webbeat-net: