-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
151 lines (142 loc) · 4.05 KB
/
compose.yaml
File metadata and controls
151 lines (142 loc) · 4.05 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
145
146
147
148
149
150
151
services:
cassandra:
image: cassandra:latest
container_name: cassandra-container
ports:
- "9042:9042"
environment:
- CASSANDRA_USER=admin
- CASSANDRA_PASSWORD=admin
volumes:
- cassandra-data:/var/lib/cassandra
redis:
image: 'redis:8.2.3-alpine'
container_name: redis-cache
restart: always
ports:
- '6379:6379'
volumes:
- redis_data:/data
redpanda-0:
command:
- redpanda
- start
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
# Address the broker advertises to clients that connect to the Kafka API.
# Use the internal addresses to connect to the Redpanda brokers'
# from inside the same Docker network.
# Use the external addresses to connect to the Redpanda brokers'
# from outside the Docker network.
- --advertise-kafka-addr internal://redpanda-0:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
# Address the broker advertises to clients that connect to the HTTP Proxy.
- --advertise-pandaproxy-addr internal://redpanda-0:8082,external://localhost:18082
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
# Redpanda brokers use the RPC API to communicate with each other internally.
- --rpc-addr redpanda-0:33145
- --advertise-rpc-addr redpanda-0:33145
# Mode dev-container uses well-known configuration properties for development in containers.
- --mode dev-container
# Tells Seastar (the framework Redpanda uses under the hood) to use 1 core on the system.
- --smp 1
- --default-log-level=info
image: docker.redpanda.com/redpandadata/redpanda:v25.1.1
container_name: redpanda-0
volumes:
- redpanda-0:/var/lib/redpanda/data
networks:
- local
ports:
- 18081:18081
- 18082:18082
- 19092:19092
- 19644:9644
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio-data:/data
command: server --address ":9000" --console-address ":9001" /data
KeycloakDB:
container_name: KeycloakDB
image: "postgres:17.2"
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ]
timeout: 45s
interval: 10s
retries: 10
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: keycloak
POSTGRES_HOST: postgres
networks:
- local
ports:
- "5432:5432"
keycloak:
container_name: keycloak
image: keycloak/keycloak:26.4
depends_on:
- "KeycloakDB"
environment:
#JAVA_TOOL_OPTIONS: -XX:UseSVE=0 #workaround for macOS 15.2
JAVA_OPTS_APPEND: -Dkeycloak.profile.feature.upload_scripts=enabled
KC_DB: postgres
KC_DB_PASSWORD: postgres
KC_DB_URL: jdbc:postgresql://KeycloakDB:5432/keycloak
KC_DB_USERNAME: postgres
KC_HTTP_ENABLED: true
KC_HOSTNAME_STRICT_HTTPS: false
KC_HOSTNAME: http://localhost:8180
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
ports:
- "8180:8080"
- "8787:8787" # debug port
networks:
- local
volumes:
- ./realm.json:/opt/keycloak/data/import/realm.json
entrypoint:
- /opt/keycloak/bin/kc.sh
- start
- --import-realm
RoomDB:
container_name: RoomDB
image: postgres:17.2
volumes:
- room_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: meventure1234
networks:
- local
ports:
- "32768:5432"
volumes:
cassandra-data:
driver: local
minio-data:
driver: local
keycloak_data:
driver: local
postgres_data:
driver: local
redis_data:
driver: local
room_data:
driver: local
redpanda-0:
driver: local
networks:
local:
name: local
driver: bridge