-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (79 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
83 lines (79 loc) · 1.73 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
version: "3"
services:
otelcollector:
image: otel/opentelemetry-collector-contrib:0.114.0
container_name: otel
command:
- "--config=/etc/otel-collector-config.yml"
- "--set=service.telemetry.logs.level=INFO"
volumes:
- ./otel-config.yml:/etc/otel-collector-config.yml
ports:
- "4317:4317" # otlp receiver
- "4318:4318" # otlp http receiver
- "13133:13133" # health_check extension
depends_on:
clickhouse:
condition: service_healthy
networks:
- otel-clickhouse
- web
clickhouse:
image: clickhouse/clickhouse-server:25.9
ports:
- "9000:9000"
- "8123:8123"
healthcheck:
test:
["CMD", "bash", "-lc", "clickhouse-client --query 'SELECT 1' || exit 1"]
interval: 5s
timeout: 5s
retries: 20
env_file:
- path: ".env.production"
required: true
networks:
- otel-clickhouse
- web
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./sql:/docker-entrypoint-initdb.d
server:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
networks:
- otel-clickhouse
- web
depends_on:
clickhouse:
condition: service_healthy
env_file:
- path: ".env.production"
required: true
labels: []
nginx:
image: nginx:1.27-alpine
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- server
- otelcollector
- clickhouse
networks:
- web
volumes:
clickhouse_data:
networks:
otel-clickhouse:
driver: bridge
internal: true
web:
driver: bridge