-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
62 lines (62 loc) · 1.63 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
version: "3.8"
services:
zookeeper:
image: wurstmeister/zookeeper
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "2181" ]
interval: 30s
timeout: 10s
retries: 5
kafka:
image: wurstmeister/kafka:2.13-2.6.0
restart: on-failure
depends_on:
- zookeeper
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "9092" ]
interval: 30s
timeout: 10s
retries: 5
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://localhost:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
rabbitmq:
image: rabbitmq:3.8.9-management
environment:
RABBITMQ_DEFAULT_USER: clamp
RABBITMQ_DEFAULT_PASS: clamp
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 10s
retries: 5
postgres:
image: postgres
environment:
POSTGRES_USER: clamp_local
POSTGRES_DB: clamp_local
POSTGRES_PASSWORD: cl@mpt3st
healthcheck:
test: ["CMD-SHELL", "pg_isready -U clamp_local"]
interval: 5s
timeout: 10s
retries: 5
clamp:
build: .
ports:
- "8080:8080"
restart: on-failure
depends_on:
- postgres
- rabbitmq
- kafka
links:
- postgres
- rabbitmq
- kafka
environment:
CLAMP_DB_CONNECTION_STR: "host=postgres:5432 user=clamp_local dbname=clamp_local password=cl@mpt3st"
CLAMP_QUEUE_CONNECTION_STR: "amqp://clamp:clamp@rabbitmq:5672/"
CLAMP_KAFKA_CONNECTION_STR: "kafka:9092"