-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.72 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
version: '3.8'
services:
yt-backend:
image: ytsaurus/local:stable
ports:
- "${API_PORT:-9980}:80"
- "${RPC_PORT:-9902}:8002"
command:
- "--fqdn"
- "localhost"
- "--proxy-config"
- "{address_resolver={enable_ipv4=%true;enable_ipv6=%false;};coordinator={public_fqdn=\"yt-backend:80\"}}"
- "--rpc-proxy-count"
- "0"
- "--rpc-proxy-port"
- "8002"
- "--node-count"
- "1"
- "--wait-tablet-cell-initialization"
volumes:
- ./data:/var/lib/yt/local-cypress
yt-frontend:
image: ytsaurus/ui:stable
ports:
- "${UI_PORT:-9981}:80"
environment:
PROXY: "localhost:${API_PORT:-9980}"
PROXY_INTERNAL: yt-backend:80
APP_ENV: local
APP_INSTALLATION: ""
postgres:
image: debezium/postgres:11-alpine
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: mydb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql # Mount the seed data script
# Golang-based load generator for MySQL CRUD operations
load_gen:
build: loadgen
depends_on:
- postgres
environment:
HOST: postgres
USER: postgres
PASSWORD: password
DB: mydb
transfer:
build: ../.. # build main transfer docker CLI
command:
- replicate
- --transfer
- /usr/local/bin/transfer.yaml
- --log-level
- info
- --log-config
- minimal
depends_on:
- postgres
- yt-backend
volumes:
- ./transfer_cdc_embed.yaml:/usr/local/bin/transfer.yaml
volumes:
clickhouse_data:
postgres_data: