-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
114 lines (104 loc) · 3.03 KB
/
docker-compose.yaml
File metadata and controls
114 lines (104 loc) · 3.03 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# 🟢 represents things you will likely need to add.
# 🟠 represents things you will likely want to change.
name: zenstack-live
volumes:
postgres-data:
redis-data:
redis-insight:
networks:
workspace:
external: false
services:
postgres:
container_name: zenstack-live-postgres
image: postgres:10.0
volumes:
- postgres-data:/var/lib/postgresql/data
env_file: ./.env
networks:
- workspace
# 🟢
command:
- "postgres"
- "-c"
- "wal_level=logical"
ports:
- 5432:5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}" ]
interval: 5s
timeout: 5s
retries: 5
debezium:
container_name: zenstack-live-debezium
image: debezium/server:3.0.0.Final
depends_on:
- postgres
- redis
environment:
DATABASE_USER: default
DEBEZIUM_FORMAT_SCHEMAS_ENABLE: false
DEBEZIUM_SINK_REDIS_ADDRESS: redis:6379 # 🟠
DEBEZIUM_SINK_REDIS_PASSWORD: # 🟠
DEBEZIUM_SINK_REDIS_SSL_ENABLED: false
DEBEZIUM_SINK_REDIS_WAIT_RETRY_ENABLED: true
DEBEZIUM_SINK_TYPE: redis
DEBEZIUM_SOURCE_CONNECTOR_CLASS: io.debezium.connector.postgresql.PostgresConnector
DEBEZIUM_SOURCE_DATABASE_DBNAME: postgres # 🟠
DEBEZIUM_SOURCE_DATABASE_HOSTNAME: postgres # 🟠
DEBEZIUM_SOURCE_DATABASE_PASSWORD: postgres # 🟠
DEBEZIUM_SOURCE_DATABASE_PORT: 5432 # 🟠
DEBEZIUM_SOURCE_DATABASE_SERVER_NAME: zenstack
DEBEZIUM_SOURCE_DATABASE_USER: postgres # 🟠
DEBEZIUM_SOURCE_PLUGIN_NAME: pgoutput
DEBEZIUM_SOURCE_SCHEMA_WHITELIST: public
DEBEZIUM_SOURCE_SNAPSHOT_MODE: no_data
DEBEZIUM_SOURCE_TOPIC_PREFIX: zenstack.table
DEBEZIUM_SOURCE_SCHEMA_HISTORY_INTERNAL: io.debezium.storage.redis.history.RedisSchemaHistory
DEBEZIUM_SOURCE_OFFSET_STORAGE: io.debezium.storage.redis.offset.RedisOffsetBackingStore
DEBEZIUM_SOURCE_OFFSET_STORAGE_REDIS_KEY: zenstack.metadata.offsets
SCHEMA_INCLUDE_LIST: public
networks:
- workspace
ports:
- 8080:8080
- 8083:8083
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/q/health"]
interval: 5s
timeout: 5s
retries: 5
redis:
container_name: zenstack-live-redis
image: redis:6.2
command: redis-server
networks:
- workspace
ports:
- 6379:6379
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 5s
timeout: 5s
retries: 5
# Below is dev stuff for the project, you don't need it.
workspace:
container_name: zenstack-live-workspace
image: mcr.microsoft.com/devcontainers/javascript-node:22
volumes:
- ..:/workspace:cached
env_file: ./.env
command: sleep infinity
networks:
- workspace
redis-insight:
container_name: zenstack-live-redis-insight
image: redis/redisinsight:3.0
depends_on:
- redis
networks:
- workspace
ports:
- 5540:5540
volumes:
- redis-insight:/data