-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
144 lines (135 loc) · 3.4 KB
/
compose.yaml
File metadata and controls
144 lines (135 loc) · 3.4 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
services:
testrunner:
image: $DEV_IMAGE_TAG
build:
dockerfile: Dockerfile.dev
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
volumes:
- .:$PWD
hostname: $SERVICE_NAME
cap_add:
- NET_ADMIN
working_dir: $PWD
environment:
OTEL_TRACES_EXPORTER: none
OTEL_TRACES_SAMPLER: always_off
depends_on:
riakdb:
condition: service_started
member1:
condition: service_started
member2:
condition: service_started
kafka1:
condition: service_healthy
kafka2:
condition: service_healthy
kafka3:
condition: service_healthy
postgres:
condition: service_healthy
test_neighbour:
condition: service_started
ports:
- "8022"
command: /sbin/init
test_neighbour:
image: distrunner-test
hostname: ${SERVICE_NAME}-neighbour
build:
dockerfile: Dockerfile.neighbour
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
depends_on:
postgres:
condition: service_healthy
riakdb: &member-node
image: docker.io/basho/riak-kv:${RIAK_VERSION}
environment:
- CLUSTER_NAME=riakkv
- COORDINATOR_NODE=riakdb
labels:
- "com.basho.riak.cluster.name=riakkv"
volumes:
- ./test_resources/riak_user.conf:/etc/riak/user.conf:ro
- schemas:/etc/riak/schemas
member1:
<<: *member-node
links:
- riakdb
depends_on:
- riakdb
member2:
<<: *member-node
links:
- riakdb
depends_on:
- riakdb
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
kafka1: &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://kafka1:9092
kafka2:
<<: *kafka-broker
environment:
KAFKA_BROKER_ID: 2
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka2:9092
kafka3:
<<: *kafka-broker
environment:
KAFKA_BROKER_ID: 3
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka3:9092
postgres:
image: postgres:15-bookworm
command: -c 'max_connections=300'
environment:
POSTGRES_DB: "progressor_db"
POSTGRES_USER: "progressor"
POSTGRES_PASSWORD: "progressor"
PGDATA: "/tmp/postgresql/data/pgdata"
volumes:
- progressor-data:/tmp/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U progressor -d progressor_db"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
deploy:
resources:
limits:
cpus: '2'
memory: 4G
volumes:
schemas:
external: false
progressor-data: