Created
October 25, 2020 13:27
-
-
Save simonjcarr/ef539b8e082f7e5355505faad41b695d to your computer and use it in GitHub Desktop.
keycloak proxy env variables in docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
volumes: | |
postgres_data: | |
driver: local | |
services: | |
postgres: | |
image: postgres | |
volumes: | |
- postgres_data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_DB: keycloak | |
POSTGRES_USER: keycloak | |
POSTGRES_PASSWORD: xxxxxxxxxx | |
keycloak: | |
image: quay.io/keycloak/keycloak:latest | |
environment: | |
DB_VENDOR: POSTGRES | |
DB_ADDR: postgres | |
DB_DATABASE: keycloak | |
DB_USER: keycloak | |
DB_SCHEMA: public | |
DB_PASSWORD: xxxxxxxxx | |
KEYCLOAK_USER: admin | |
KEYCLOAK_PASSWORD: xxxxxxxxxx | |
PROXY_ADDRESS_FORWARDING: "true" | |
REDIRECT_SOCKET: "proxy-https" | |
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it. | |
#JDBC_PARAMS: "ssl=true" | |
ports: | |
- 8080:8080 | |
depends_on: | |
- postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment