Use postgresql for faster startup

This commit is contained in:
Mark Ettema 2021-05-11 07:42:16 +07:00
parent a003e250fa
commit f14bf5e6e2
2 changed files with 28 additions and 0 deletions

6
.gitignore vendored
View file

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

View file

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