-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
123 lines (116 loc) · 3.29 KB
/
compose.yaml
File metadata and controls
123 lines (116 loc) · 3.29 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
115
116
117
118
119
120
121
122
123
services:
testrunner:
image: $DEV_IMAGE_TAG
environment:
WORK_DIR: $PWD
POSTGRES_HOST: dmt_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dmt
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
build:
dockerfile: Dockerfile.dev
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
volumes:
- .:$PWD
hostname: dmt.default
depends_on:
dmt_db:
condition: service_healthy
# holmes:
# condition: service_started
kafka:
condition: service_started
# shumway:
# condition: service_started
working_dir: $PWD
dmt_db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dmt
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
zookeeper:
image: docker.io/confluentinc/cp-zookeeper:${CONFLUENT_PLATFORM_VERSION}
healthcheck:
test: echo ruok | nc 127.0.0.1 2181 || exit -1
interval: 5s
timeout: 240s #🍎
retries: 50
environment:
KAFKA_OPTS: "-Dzookeeper.4lw.commands.whitelist=ruok"
ZOOKEEPER_CLIENT_PORT: 2181
kafka: &kafka-broker
image: docker.io/confluentinc/cp-kafka:${CONFLUENT_PLATFORM_VERSION}
depends_on:
- zookeeper
healthcheck:
test: ["CMD", "kafka-topics", "--list", "--zookeeper", "zookeeper:2181"]
interval: 5s
timeout: 10s
retries: 5
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
# Kafka UI for development and debugging
kafka-ui:
image: provectuslabs/kafka-ui:latest
container_name: kafka-ui
depends_on:
kafka:
condition: service_healthy
ports:
- "8080:8080"
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
restart: unless-stopped
# For test purposes
# holmes:
# image: ghcr.io/valitydev/holmes:sha-eef05a3
# volumes:
# - ./dmt_init.sh:/opt/holmes/dmt_init.sh
# - ./migrate_domain_config.py:/opt/holmes/migrate_domain_config.py
# - ./revision.txt:/opt/holmes/revision.txt
# - ./RevisionBig.txt:/opt/holmes/RevisionBig.txt
# - ./RevisionBigV2.txt:/opt/holmes/RevisionBigV2.txt
# - ./res.json:/opt/holmes/res.json
# shumway:
# image: ghcr.io/valitydev/shumway:sha-658587c
# restart: unless-stopped
# depends_on:
# - shumway-db
# ports:
# - "8022"
# entrypoint:
# - java
# - -Xmx512m
# - -jar
# - /opt/shumway/shumway.jar
# - --spring.datasource.url=jdbc:postgresql://shumway-db:5432/shumway
# - --spring.datasource.username=postgres
# - --spring.datasource.password=postgres
# - --management.endpoint.metrics.enabled=false
# - --management.endpoint.prometheus.enabled=false
# healthcheck:
# disable: true
# shumway-db:
# image: docker.io/library/postgres:13.10
# ports:
# - "5432"
# environment:
# - POSTGRES_DB=shumway
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres