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 ## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons. ## files generated by popular Visual Studio add-ons.
## ##
@ -330,3 +334,5 @@ ASALocalRun/
# MFractors (Xamarin productivity tool) working folder # MFractors (Xamarin productivity tool) working folder
.mfractor/ .mfractor/
dist/

View file

@ -1,13 +1,35 @@
version: '2' version: '2'
volumes:
postgres_data:
driver: local
services: 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: keycloak:
image: jboss/keycloak image: jboss/keycloak
container_name: keycloak container_name: keycloak
environment: environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: changeit KEYCLOAK_PASSWORD: changeit
ports: ports:
- 8080:8080 - 8080:8080
links:
- postgres
steamidp: steamidp:
image: neothor/steam-openid-connect-provider:develop image: neothor/steam-openid-connect-provider:develop