-
Notifications
You must be signed in to change notification settings - Fork 92
/
docker-compose.yml
103 lines (100 loc) · 2.75 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.8'
services:
postgres:
image: postgres:14.1-alpine
container_name: postgres
restart: always
environment:
- POSTGRES_MULTIPLE_DATABASES=banking_kata_db,keycloak_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin
ports:
- '5400:5432'
networks:
- local
volumes:
- postgres:/var/lib/postgresql/data
- ./startup/src/main/resources/postgres:/docker-entrypoint-initdb.d
mongodb:
image: mongo:6.0.3
container_name: mongodb
ports:
- '27017:27017'
networks:
- local
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
mongo-express:
image: mongo-express:0.54.0
container_name: mongo-express
restart: always
ports:
- '8081:8081'
networks:
- local
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=${MONGO_INITDB_ROOT_USERNAME}
- ME_CONFIG_MONGODB_ADMINPASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- ME_CONFIG_MONGODB_SERVER=${ME_CONFIG_MONGODB_SERVER}
adminer:
image: adminer:4.8.1
container_name: adminer
restart: always
ports:
- '9000:8080'
networks:
- local
depends_on:
- postgres
keycloak:
image: jboss/keycloak:16.0.0 # NOTE: Custom image build working on Mac M1 (https://github.com/docker/for-mac/issues/5310)
container_name: keycloak
environment:
- DB_VENDOR=postgres
- DB_ADDR=postgres
- DB_DATABASE=keycloak_db
- DB_USER=postgres
- DB_PASSWORD=admin
- KEYCLOAK_IMPORT=/tmp/realm-export.json
ports:
- "10000:8080"
restart: unless-stopped
networks:
- local
volumes:
- ./startup/src/main/resources/keycloak/realm-export.json:/tmp/realm-export.json
depends_on:
- postgres
redis:
image: redis:6.2-alpine
container_name: redis
restart: always
ports:
- '6379:6379'
networks:
- local
command: redis-server --save 20 1 --loglevel warning --requirepass b4EA2xC6LlKnlizPu9bwRRrQM
volumes:
- redis:/data
rabbitmq:
container_name: rabbitmq-preload-conf
image: rabbitmq:3-management
ports:
- 5672:5672 # RabbitMQ default port
- 15672:15672 # RabbitMQ management plugin port
networks:
- local
volumes:
- ./startup/src/main/resources/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
- ./startup/src/main/resources/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json:ro
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER} # RabbitMQ admin username
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASS} # RabbitMQ admin password
volumes:
postgres:
driver: local
redis:
driver: local
networks:
local: