-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (77 loc) · 2.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (77 loc) · 2.54 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
traefik:
image: traefik:v3.3.5
command:
- --api.insecure=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --metrics.prometheus=true
- --accesslog=true
ports:
- "80:80"
- "8080:8080" # Traefik dashboard and metrics
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- traefik_public
portainer:
image: portainer/portainer-ce:2.27.3-alpine
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- portainer_data:/data
labels:
- traefik.http.routers.portainer.priority=100 # Higher priority than frontend
- traefik.enable=true
- traefik.http.routers.portainer.rule=Host(`portainer.localhost`)
- traefik.http.routers.portainer.entrypoints=web
- traefik.http.services.portainer.loadbalancer.server.port=9000
networks:
- traefik_public
frontend:
image: ghcr.io/subvision-soft/subvision:2025.4.1-pre.eb6ce71
labels:
- traefik.enable=true
- traefik.http.routers.frontend.rule=PathPrefix(`/`)
- traefik.http.routers.frontend.priority=10 # Lower priority than specific hosts
- traefik.http.routers.frontend.entrypoints=web
- traefik.http.services.frontend.loadbalancer.server.port=80
networks:
- traefik_public
backend-api:
image: ghcr.io/subvision-soft/subvision-api:latest
deploy:
resources:
limits:
cpus: '4'
memory: 2048M
reservations:
cpus: '0.1'
memory: 256M
labels:
- traefik.enable=true
- traefik.http.routers.backend-api.rule=Host(`api.localhost`)
- traefik.http.routers.backend-api.entrypoints=web
- traefik.http.services.backend-api.loadbalancer.server.port=3000
- traefik.http.services.backend-api.loadbalancer.healthcheck.path=/health
- traefik.http.services.backend-api.loadbalancer.healthcheck.interval=10s
networks:
- traefik_public
grafana:
image: grafana/grafana-enterprise:11.6.0
volumes:
- grafana_data:/var/lib/grafana
labels:
- traefik.http.routers.grafana.priority=100 # Higher priority than frontend
- traefik.enable=true
- traefik.http.routers.grafana.rule=Host(`grafana.localhost`)
- traefik.http.routers.grafana.entrypoints=web
- traefik.http.services.grafana.loadbalancer.server.port=3000
networks:
- traefik_public
networks:
traefik_public:
external: true
volumes:
portainer_data:
grafana_data: