-
-
Save sergio9508/6db9da23439c538623e66884a43370d3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
POSTGRES_DB=keycloak_db | |
POSTGRES_USER=keycloak_db_user | |
POSTGRES_PASSWORD=keycloak_db_user_password | |
KEYCLOAK_ADMIN=admin | |
KEYCLOAK_ADMIN_PASSWORD=password | |
PGADMIN_DEFAULT_EMAIL=[email protected] | |
PGADMIN_DEFAULT_PASSWORD=SuperSecret |
This file contains hidden or 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
services: | |
postgres: | |
image: postgres:16.2 | |
container_name: postgres_keycloak | |
volumes: | |
- ./db-data:/var/lib/postgresql/data/ | |
environment: | |
POSTGRES_DB: ${POSTGRES_DB} | |
POSTGRES_USER: ${POSTGRES_USER} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | |
ports: | |
- 5432:5432 | |
networks: | |
- keycloak_network | |
pgadmin: | |
container_name: pgadmin_keycloak | |
image: "dpage/pgadmin4:8.14" | |
environment: | |
# Default email for pgAdmin 4 | |
PGADMIN_DEFAULT_EMAIL: [email protected] | |
# Password for pgAdmin 4 | |
PGADMIN_DEFAULT_PASSWORD: adminpassword | |
ports: | |
- 8081:80 | |
networks: | |
- keycloak_network | |
depends_on: | |
- postgres | |
volumes: | |
- ./pgadmin-data:/var/lib/pgadmin | |
keycloak: | |
container_name: keycloak | |
image: quay.io/keycloak/keycloak:23.0.6 | |
command: start | |
environment: | |
KC_HOSTNAME: localhost | |
KC_HOSTNAME_PORT: 8080 | |
KC_HOSTNAME_STRICT_BACKCHANNEL: false | |
KC_HTTP_ENABLED: true | |
KC_HOSTNAME_STRICT_HTTPS: false | |
KC_HEALTH_ENABLED: true | |
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN} | |
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD} | |
KC_DB: postgres | |
KC_DB_URL: jdbc:postgresql://postgres/${POSTGRES_DB} | |
KC_DB_USERNAME: ${POSTGRES_USER} | |
KC_DB_PASSWORD: ${POSTGRES_PASSWORD} | |
ports: | |
- 8080:8080 | |
restart: always | |
depends_on: | |
- postgres | |
networks: | |
- keycloak_network | |
networks: | |
keycloak_network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment