-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-bitnami-custom.yml
51 lines (51 loc) · 1.29 KB
/
docker-compose-bitnami-custom.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
version: '2'
services:
postgresql:
image: docker.io/bitnami/postgresql:latest
ports:
- "5432:5432"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- POSTGRESQL_USERNAME=bn_keycloak
- POSTGRESQL_POSTGRES_PASSWORD=munp2ki74l
- POSTGRESQL_DATABASE=bitnami_keycloak
volumes:
- 'postgresql_data:/bitnami/postgresql'
networks:
- springboot-microservices-network
keycloak:
image: docker.io/bitnami/keycloak:latest
hostname: keycloak
ports:
- "8091:8091"
environment:
- KEYCLOAK_CREATE_ADMIN_USER=true
- KEYCLOAK_ADMIN_USER=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KEYCLOAK_HTTP_PORT=8091
- KEYCLOAK_EXTRA_ARGS=--import-realm
depends_on:
- postgresql
volumes:
- './realms:/opt/bitnami/keycloak/data/import'
networks:
- springboot-microservices-network
springboot-microservice-vaadin:
image: springboot-microservice-vaadin:latest
build:
context: .
dockerfile: Dockerfile
volumes:
- /data/springboot-microservice-vaadin
ports:
- "8080:8080"
depends_on:
- keycloak
networks:
- springboot-microservices-network
volumes:
postgresql_data:
driver: local
networks:
springboot-microservices-network:
driver: bridge