Bladeren bron

init

tags/v1.0.0
Robin Thoni 4 jaren geleden
commit
a337851a21
Getekend door: Robin THONI <robin@rthoni.com> GPG sleutel-ID: 4E09DEF46B99E61E
3 gewijzigde bestanden met toevoegingen van 57 en 0 verwijderingen
  1. 10
    0
      .env
  2. 2
    0
      .gitignore
  3. 45
    0
      docker-compose.yml

+ 10
- 0
.env Bestand weergeven

@@ -0,0 +1,10 @@
1
+TIMEZONE=Europe/Paris
2
+
3
+PG_HOST=postgresql.main.internal.docker
4
+PG_USER=keycloak
5
+PG_PASSWORD=change_it
6
+PG_DB=keycloak
7
+PG_SCHEMA=public
8
+
9
+KC_USER=admin
10
+KC_PASSWORD=change_it

+ 2
- 0
.gitignore Bestand weergeven

@@ -0,0 +1,2 @@
1
+.idea
2
+/data

+ 45
- 0
docker-compose.yml Bestand weergeven

@@ -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:

Laden…
Annuleren
Opslaan