-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (76 loc) · 1.83 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
services:
zookeeper:
image: wurstmeister/zookeeper
container_name: sc-zookeeper
healthcheck:
test: [ "CMD", "nc", "-vz", "localhost", "2181" ]
interval: 10s
timeout: 3s
retries: 3
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
container_name: sc-kafka
ports:
- "9092:9092"
healthcheck:
test: [ "CMD", "nc", "-vz", "localhost", "9092" ]
interval: 10s
timeout: 3s
retries: 3
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
zookeeper:
condition: service_healthy
rdbms:
image: postgres:16-alpine
container_name: sc-rdbms
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
healthcheck:
test: ["CMD", "pg_isready", "-h", "localhost", "-U", "postgres"]
interval: 5s
timeout: 3s
retries: 3
volumes:
- rdbms:/var/lib/postgresql/data
- ./init-rdb:/docker-entrypoint-initdb.d
# keycloak:
# image: bitnami/keycloak:23
# container_name: sc-keycloak
# environment:
# DB_VENDOR: POSTGRES
# DB_ADDR: rdbms
# DB_DATABASE: keycloak_db
# DB_USER: keycloak_user
# DB_PASSWORD: password
# KEYCLOAK_ADMIN: admin
# KEYCLOAK_ADMIN_PASSWORD: admin
# ports:
# - "8484:8080"
# depends_on:
# rdbms:
# condition: service_healthy
# links:
# - "rdbms:rdbms"
# flyway:
# image: redgate/flyway:latest
# container_name: sc-flyway
# command:
# - "-url=jdbc:postgresql://rdbms/supreme_code"
# - "-user=supreme_user"
# - "-password=password"
# - "-schemas=supreme_code"
# depends_on:
# - rdbms
# volumes:
# - ./web/src/main/resources/db/migration
volumes:
rdbms:
driver: local