-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (80 loc) · 2.39 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
77
78
79
80
81
82
83
84
85
version: '3.8'
services:
dancer:
build: ./
ports:
- "8080:8080"
- "8081:8081"
- "5005:5005"
depends_on:
- dancer-db
environment:
# https://ckinan.com/blog/remote-debug-spring-boot-docker-intellij/:
- SPRING_DATASOURCE_URL=jdbc:postgresql://dancer-db:5432/dancer
- SPRING_PROFILES_ACTIVE="dev"
- JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
dancer-db:
image: postgres:14
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: dancer
POSTGRES_PASSWORD: dancer
POSTGRES_DB: dancer
volumes:
- ./volumes/dancer-data:/var/lib/postgresql/data
pg-admin:
image: dpage/pgadmin4:8.1
restart: always
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: admin@dancier.net
PGADMIN_DEFAULT_PASSWORD: secret
volumes:
- ./volumes/pg-admin-data:/var/lib/pgadmin
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
kafka:
container_name: kafka
image: bitnami/kafka:3.3.1
environment:
KAFKA_ENABLE_KRAFT: 'yes'
KAFKA_KRAFT_CLUSTER_ID: r7dMBY60T16TrNCGeXniLw
KAFKA_CFG_PROCESS_ROLES: broker,controller
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_LISTENERS: BROKER://:9092 ,CONTROLLER://:9093, LOCALHOST://:9081
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, CONTROLLER:PLAINTEXT, LOCALHOST:PLAINTEXT
KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka:9092, LOCALHOST://localhost:9081
KAFKA_BROKER_ID: 1
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@kafka:9093
ALLOW_PLAINTEXT_LISTENER: 'yes'
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
volumes:
- ./volumes/kafka:/bitnami/kafka
ports:
- 127.0.0.1:9092:9081
- 127.0.0.1:9081:9081
kafka-ui:
container_name: kafka-ui
image: tchiotludo/akhq:latest
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/ui"]
interval: 10s
timeout: 2s
ports:
- "8088:8080"
environment:
AKHQ_CONFIGURATION: |
akhq:
connections:
docker-kafka-server:
properties:
bootstrap.servers: "kafka:9092"