forked from amacneil/dbmate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (58 loc) · 1.69 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
version: "2.3"
services:
dev:
build:
context: .
target: dev
volumes:
- .:/src
depends_on:
- mysql
- postgres
- clickhouse
- clickhouse-cluster-01
- clickhouse-cluster-02
environment:
CLICKHOUSE_TEST_URL: clickhouse://clickhouse:9000/dbmate_test
CLICKHOUSE_CLUSTER_01_TEST_URL: clickhouse://ch-cluster-01:9000/dbmate_test
CLICKHOUSE_CLUSTER_02_TEST_URL: clickhouse://ch-cluster-02:9000/dbmate_test
MYSQL_TEST_URL: mysql://root:root@mysql/dbmate_test
POSTGRES_TEST_URL: postgres://postgres:postgres@postgres/dbmate_test?sslmode=disable
SQLITE_TEST_URL: sqlite3:/tmp/dbmate_test.sqlite3
dbmate:
build:
context: .
target: release
image: dbmate_release
mysql:
image: mysql/mysql-server:8.0
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: root
postgres:
image: postgres:10
environment:
POSTGRES_PASSWORD: postgres
clickhouse:
image: clickhouse/clickhouse-server:22.8
zookeeper:
image: zookeeper
hostname: zookeeper
clickhouse-cluster-01:
image: clickhouse/clickhouse-server:22.8
hostname: ch-cluster-01
environment:
- CLICKHOUSE_CONFIG=/etc/clickhouse-server/config.xml
depends_on:
- zookeeper
volumes:
- ./pkg/driver/clickhouse/testdata/cluster_config/ch-cluster-01:/etc/clickhouse-server
clickhouse-cluster-02:
image: clickhouse/clickhouse-server:22.8
hostname: ch-cluster-02
environment:
- CLICKHOUSE_CONFIG=/etc/clickhouse-server/config.xml
depends_on:
- zookeeper
volumes:
- ./pkg/driver/clickhouse/testdata/cluster_config/ch-cluster-02:/etc/clickhouse-server