forked from transferia/transferia
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.23 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
version: '3.8'
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
container_name: clickhouse
ports:
- "8123:8123" # HTTP interface
- "9000:9000" # Native TCP interface
environment:
CLICKHOUSE_USER: default
CLICKHOUSE_DB: default
CLICKHOUSE_PASSWORD: "ch_password"
mysql:
image: mysql:8.4
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: mydb
MYSQL_USER: myuser
MYSQL_PASSWORD: mypassword
ports:
- "3306:3306"
volumes:
- ./custom_my.cnf:/etc/mysql/my.cnf
- ./init.sql:/docker-entrypoint-initdb.d/init.sql # Mount the seed data script
# Golang-based load generator for MySQL CRUD operations
crud_load_gen:
build: ../mysql2kafka/loadgen
depends_on:
- mysql
environment:
MYSQL_HOST: mysql
MYSQL_USER: myuser
MYSQL_PASSWORD: mypassword
MYSQL_DB: mydb
transfer:
build: ../.. # build main transfer docker CLI
command:
- replicate
- --transfer
- /usr/local/bin/transfer.yaml
- --log-level
- info
depends_on:
- mysql
- clickhouse
volumes:
- ./transfer.yaml:/usr/local/bin/transfer.yaml