forked from valentinajemuovic/banking-kata-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (74 loc) · 1.91 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
# TODO: Clean-up this file, the comments were added due to merge
version: '3.8'
services:
db:
# postgres:
image: postgres:14.1-alpine
# image: postgres:latest
container_name: postgres
restart: always
# restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin
# POSTGRES_USER: ${POSTGRES_USER}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
# POSTGRES_DB: ${POSTGRES_DB}
ports:
- '5432:5432'
networks:
- local
# NOTE: The networks was ommitted in the commit without the db volumnes
volumes:
- db:/var/lib/postgresql/data
# - ./db_persist:/var/lib/postgresql/data
mongodb:
image: mongo
container_name: bk-mongo-db
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
mongo-express:
image: mongo-express #TODO: Perhaps explicit version?
container_name: bk-mongo-express
restart: always
ports:
- 8081:8081
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
restart: always
ports:
- '9000:8080'
networks:
- local
depends_on:
- db
keycloak:
image: jboss/keycloak:16.1.1
container_name: keycloak
environment:
- DB_VENDOR=postgres
- DB_ADDR=db
- DB_DATABASE=keycloak
- DB_USER=postgres
- DB_PASSWORD=admin
ports:
- "10000:8080"
restart: unless-stopped
networks:
- local
depends_on:
- db
volumes:
db:
driver: local
networks:
local:
# NOTE: In the case of ./db_persist:/var/lib/postgresql/data, then the volumes section is ommitted
# TODO: Reconcile environment variables above