Skip to content

Commit

Permalink
Remove postgres from docker-compose.yaml (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzarras authored Nov 20, 2023
1 parent cf6df15 commit cfdb058
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions keycloak/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,10 @@
version: '3.8'

volumes:
postgres_data:
driver: local

networks:
default:
driver: bridge

services:
postgres:
image: postgres:15-alpine
container_name: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- default
ports:
- "0.0.0.0:5432:5432"
healthcheck:
test: "exit 0"
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password

keycloak:
image: quay.io/keycloak/keycloak:nightly
container_name: keycloak
Expand All @@ -37,11 +17,6 @@ services:
- KC_HOSTNAME_STRICT=false
- KC_HEALTH_ENABLED=true
- KC_METRICS_ENABLED=true
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://postgres:5432/keycloak
- KC_DATABASE=keycloak
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=password
- KC_SPI_THEME_STATIC_MAX_AGE=-1
- KC_SPI_THEME_CACHE_THEMES=false
- KC_SPI_THEME_CACHE_TEMPLATES=false
Expand All @@ -52,9 +27,6 @@ services:
interval: 5s
timeout: 10s
retries: 12
depends_on:
postgres:
condition: service_healthy
volumes:
- ./keycloak-extra/health-check.sh:/opt/keycloak/health-check.sh
- ./keycloak-realms/:/opt/keycloak/data/import
Expand Down

0 comments on commit cfdb058

Please sign in to comment.