-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
92 lines (83 loc) · 2.63 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
clickhouse:
image: clickhouse/clickhouse-server:23.11-alpine
volumes:
- "./docker/volume/clickhouse/dump:/docker-entrypoint-initdb.d/"
postgres:
image: postgres:12-alpine
volumes:
- "./docker/volume/postgres/dump:/docker-entrypoint-initdb.d/"
env_file:
- .env
mysql:
image: mysql:8.0.31
env_file:
- .env
app:
build:
context: ./
dockerfile: Dockerfile
working_dir: "/usr/src/app"
command: "sleep infinity"
depends_on:
- clickhouse
- clickhouse1
- clickhouse2
- clickhouse-r-1
- clickhouse-r-2
- postgres
- mysql
links:
- clickhouse
- clickhouse1
- clickhouse2
- clickhouse-r-1
- clickhouse-r-2
- postgres
- mysql
volumes:
- "./:/usr/src/app"
- "~/.cache/go-build:/root/.cache/go-build"
- "~/go/pkg/mod:/root/go/pkg/mod"
env_file:
- .env
clickhouse-keeper:
image: clickhouse/clickhouse-keeper:23.11-alpine
restart: on-failure
volumes:
- "./docker/volume/clickhouse-cluster/config/keeper1/keeper_config.xml:/etc/clickhouse-keeper/keeper_config.xml"
clickhouse1:
image: clickhouse/clickhouse-server:23.11-alpine
restart: on-failure
volumes:
- "./docker/volume/clickhouse-cluster/config/clickhouse1:/etc/clickhouse-server/config.d/"
depends_on:
- clickhouse-keeper
clickhouse2:
image: clickhouse/clickhouse-server:23.11-alpine
restart: on-failure
volumes:
- "./docker/volume/clickhouse-cluster/config/clickhouse2:/etc/clickhouse-server/config.d/"
depends_on:
- clickhouse-keeper
clickhouse-keeper-r:
image: clickhouse/clickhouse-keeper:23.11-alpine
restart: on-failure
volumes:
- "./docker/volume/clickhouse-cluster-replicated/config/keeper1/keeper_config.xml:/etc/clickhouse-keeper/keeper_config.xml"
clickhouse-r-1:
image: clickhouse/clickhouse-server:23.11-alpine
restart: on-failure
volumes:
- "./docker/volume/clickhouse-cluster-replicated/config/clickhouse1:/etc/clickhouse-server/config.d/"
- "./docker/volume/clickhouse-cluster-replicated/config/clickhouse1/users.xml:/etc/clickhouse-server/users.d/users.xml"
depends_on:
- clickhouse-keeper-r
clickhouse-r-2:
image: clickhouse/clickhouse-server:23.11-alpine
restart: on-failure
volumes:
- "./docker/volume/clickhouse-cluster-replicated/config/clickhouse2:/etc/clickhouse-server/config.d/"
- "./docker/volume/clickhouse-cluster-replicated/config/clickhouse2/users.xml:/etc/clickhouse-server/users.d/users.xml"
depends_on:
- clickhouse-keeper-r