|
@@ -0,0 +1,45 @@
|
|
1
|
+version: '2.0'
|
|
2
|
+services:
|
|
3
|
+ postgresql:
|
|
4
|
+ image: postgres:12.2
|
|
5
|
+ container_name: keycloak-postgresql
|
|
6
|
+# restart: unless-stopped
|
|
7
|
+ volumes:
|
|
8
|
+ - ./data/postgresql/data/:/var/lib/postgresql/data/
|
|
9
|
+ environment:
|
|
10
|
+ TZ: ${TIMEZONE}
|
|
11
|
+ POSTGRES_DB: ${PG_DB}
|
|
12
|
+ POSTGRES_USER: ${PG_USER}
|
|
13
|
+ POSTGRES_PASSWORD: ${PG_PASSWORD}
|
|
14
|
+ networks:
|
|
15
|
+ main.internal.docker:
|
|
16
|
+ aliases:
|
|
17
|
+ - postgresql.main.internal.docker
|
|
18
|
+
|
|
19
|
+ keycloak:
|
|
20
|
+ image: quay.io/keycloak/keycloak:10.0.1
|
|
21
|
+ container_name: keycloak-keycloak
|
|
22
|
+# restart: unless-stopped
|
|
23
|
+ networks:
|
|
24
|
+ main.internal.docker:
|
|
25
|
+ aliases:
|
|
26
|
+ - keycloak.main.internal.docker
|
|
27
|
+ environment:
|
|
28
|
+ TZ: ${TIMEZONE}
|
|
29
|
+ DB_VENDOR: POSTGRES
|
|
30
|
+ DB_ADDR: ${PG_HOST}
|
|
31
|
+ DB_DATABASE: ${PG_DB}
|
|
32
|
+ DB_USER: ${PG_USER}
|
|
33
|
+ DB_SCHEMA: ${PG_SCHEMA}
|
|
34
|
+ DB_PASSWORD: ${PG_PASSWORD}
|
|
35
|
+ KEYCLOAK_USER: ${KC_USER}
|
|
36
|
+ KEYCLOAK_PASSWORD: ${KC_PASSWORD}
|
|
37
|
+ PROXY_ADDRESS_FORWARDING: 'true'
|
|
38
|
+ ports:
|
|
39
|
+ - 0.0.0.0:35220:8080/tcp
|
|
40
|
+# volumes:
|
|
41
|
+# - ./data/keycloak/themes/my_theme/:/opt/jboss/keycloak/themes/my_theme/
|
|
42
|
+ depends_on:
|
|
43
|
+ - postgresql
|
|
44
|
+networks:
|
|
45
|
+ main.internal.docker:
|