-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (59 loc) · 1.5 KB
/
docker-compose.yml
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
networks:
app_network:
driver: bridge
volumes:
clickhouse_data: {}
clickhouse_log: {}
grafana_data: {}
services:
grafana:
image: grafana/grafana:10.2.2
container_name: grafana
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
environment:
- GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}
- GF_USERS_ALLOW_SIGN_UP=false
- GF_INSTALL_PLUGINS=grafana-clickhouse-datasource
restart: unless-stopped
ports:
- '3000:3000'
depends_on:
- clickhouse
clickhouse:
build:
context: ./clickhouse
dockerfile: Dockerfile
container_name: clickhouse
restart: always
ports:
- "9001:9000"
- "8123:8123"
volumes:
- clickhouse_data:/var/lib/clickhouse
- clickhouse_log:/var/log/clickhouse-server
a2s-loader:
build:
context: ./a2s-loader
dockerfile: Dockerfile
container_name: a2s-loader
restart: always
environment:
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PORT=9000
- TIMEOUT=1
depends_on:
- clickhouse
a2s-masterquery:
build:
context: ./a2s-masterquery
dockerfile: Dockerfile
container_name: a2s-masterquery
environment:
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PORT=9000
depends_on:
- clickhouse