Hi,
I am using keycloak and I want the postgres DB to be prefilled with some data which is why I have added an import under volumes as follows:
postgres:
image: <private>/postgresql:14.3-1
volumes:
- ./sqlFile/keycloak_db.sql:/docker-entrypoint-initdb.d/dump.sq:ro
- postgres_data:/var/lib/postgresql/data
ports:
- "5434:5432"
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
container_name: keycloak_quay
image: quay.io/keycloak/keycloak:18.0.2
entrypoint: /opt/keycloak/bin/kc.sh
command:
- start-dev
depends_on:
- postgres
ports:
- "8080:8080"
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_DB_URL: jdbc:postgresql://postgres/keycloak
KC_DB: postgres
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
KC_HOSTNAME: localhost
volumes:
postgres_data:
name: postgres_data
driver: local
But the import is not working, can anybody let me know what is wrong with this?
submitted by /u/snow_white-8
[link] [comments]
from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/IAhfwbC