-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
60 lines (56 loc) · 1.36 KB
/
docker-compose.yaml
File metadata and controls
60 lines (56 loc) · 1.36 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
services:
traefik:
image: 'traefik:v3.5'
command:
- '--api.insecure=true'
- '--providers.docker=true'
- '--providers.file.filename=/config.yaml'
ports:
- '80:80'
- '8080:8080'
volumes:
- './traefik.yaml:/config.yaml:ro'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
networks:
main:
ipv4_address: 172.20.0.2
extra_hosts:
- "host.docker.internal:host-gateway"
postgres:
image: 'postgres:17.6'
volumes:
- 'postgres_data:/var/lib/postgresql/data'
environment:
POSTGRES_DB: follytics
POSTGRES_USER: follytics
POSTGRES_PASSWORD: password
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U follytics' ]
interval: 10s
timeout: 5s
retries: 5
networks:
main:
ipv4_address: 172.20.0.3
otel-lgtm:
image: 'grafana/otel-lgtm:0.11.10'
volumes:
- 'otel_lgtm_data:/data'
networks:
main:
ipv4_address: 172.20.0.4
labels:
- "traefik.enable=true"
- "traefik.http.routers.otel_lgtm_grafana.rule=Host(`grafana.follytics.localhost`)"
- "traefik.http.services.otel_lgtm_grafana.loadbalancer.server.port=3000"
volumes:
postgres_data:
driver: local
otel_lgtm_data:
driver: local
networks:
main:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/28