forked from AOT-Technologies/forms-flow-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (45 loc) · 1.36 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
# Author: Shibin Thomas
version: "3.7"
volumes:
postgres:
networks:
keycloak-server-network:
driver: 'bridge'
services:
keycloak-db:
image: postgres:latest
restart: always
container_name: keycloak_db
volumes:
- ./postgres/keycloak:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${KEYCLOAK_JDBC_DB:-keycloak}
POSTGRES_USER: ${KEYCLOAK_JDBC_USER:-admin}
POSTGRES_PASSWORD: ${KEYCLOAK_JDBC_PASSWORD:-changeme}
ports:
- 5431:5431
networks:
- keycloak-server-network
keycloak:
image: quay.io/keycloak/keycloak:14.0.0
restart: unless-stopped
container_name: keycloak
volumes:
- ./imports:/opt/jboss/keycloak/imports
- ./themes/formsflow:/opt/jboss/keycloak/themes/formsflow
command:
- "-b 0.0.0.0 -Dkeycloak.import=/opt/jboss/keycloak/imports/formsflow-ai-realm.json -Dkeycloak.migration.strategy=OVERWRITE_EXISTING"
environment:
- DB_VENDOR=POSTGRES
- DB_ADDR=keycloak-db
- DB_DATABASE=${KEYCLOAK_JDBC_DB:-keycloak}
- DB_USER=${KEYCLOAK_JDBC_USER-admin}
- DB_PASSWORD=${KEYCLOAK_JDBC_PASSWORD:-changeme}
- KEYCLOAK_USER=${KEYCLOAK_ADMIN_USER:-admin}
- KEYCLOAK_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD:-changeme}
ports:
- 8080:8080
depends_on:
- keycloak-db
networks:
- keycloak-server-network