From f14bf5e6e2b36148413bbe1bf3835be79adf7898 Mon Sep 17 00:00:00 2001 From: Mark Ettema Date: Tue, 11 May 2021 07:42:16 +0700 Subject: [PATCH] Use postgresql for faster startup --- .gitignore | 6 ++++++ docker-compose.yml | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.gitignore b/.gitignore index 4bda13b..ca3816f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ + +## For secrets in through docker env variables +docker-compose.secrets.yml + ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. ## @@ -330,3 +334,5 @@ ASALocalRun/ # MFractors (Xamarin productivity tool) working folder .mfractor/ + +dist/ \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 444adb9..4709acd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,35 @@ version: '2' +volumes: + postgres_data: + driver: local + services: + postgres: + image: postgres + container_name: postgres + volumes: + - postgres_data:/var/lib/postgresql/data + environment: + POSTGRES_DB: keycloak + POSTGRES_USER: keycloak + POSTGRES_PASSWORD: password + keycloak: image: jboss/keycloak container_name: keycloak environment: + DB_VENDOR: POSTGRES + DB_ADDR: postgres + DB_DATABASE: keycloak + DB_USER: keycloak + DB_SCHEMA: public + DB_PASSWORD: password KEYCLOAK_USER: admin KEYCLOAK_PASSWORD: changeit ports: - 8080:8080 + links: + - postgres steamidp: image: neothor/steam-openid-connect-provider:develop