-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.63 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
version: '3.8'
services:
postgres_bmac_db:
image: postgres:15.4-alpine
restart: always
environment:
POSTGRES_DB: 'bmac_db'
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'password'
ports:
- '5432:5432'
networks:
- backend
volumes:
- ./bmac/postgres/data:/var/lib/postgresql/data
bmac_rabbitmq:
image: rabbitmq:3.12.4-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
ports:
- "5672:5672" #AMQP
- "15672:15672" #MGMT
healthcheck:
test: [ "CMD", "wget", "--spider", "http://localhost:15672" ]
interval: 30s
timeout: 10s
retries: 5
networks:
- backend
volumes:
- ./bmac/rabbitmq/data/:/var/lib/rabbitmq/
- ./bmac/rabbitmq/log/:/var/log/rabbitmq/
bmac_idp_postgres:
image: postgres:15.4-alpine
volumes:
- ./bmac/idp/postgres/data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
networks:
- kc
bmac_idp_keycloak:
image: quay.io/keycloak/keycloak:22.0.1
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_DB=postgres
- KC_DB_URL_HOST=bmac_idp_postgres
- KC_DB_URL_DATABASE=keycloak
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=password
command: start-dev
ports:
- "8180:8080"
depends_on:
- bmac_idp_postgres
networks:
- kc
networks:
kc:
name: kc-network
driver: bridge
backend:
name: back-network
driver: bridge