Skip to content

TIP: How to Persist OpenIG Configuration Between Restarts

Maxim Thomas edited this page Dec 2, 2024 · 1 revision

OpenIG stores its configuration data in /usr/local/openig-config directory. If you need to customize OpenIG configuration and need OpenIG Docker contaner to load it, mount your local folder to the OpenIG docker image

With docker-compose.yaml file

services:
  openig:
    image: openidentityplatform/openig:latest
    volumes:
      - ./openig-config:/usr/local/openig-config/config
    ports:  
      - "8080:8080"

With docker run command:

docker run -h openig-01.domain.com \
    -p 8080:8080 \
    --name openig-01 \
    -v ./openig-config:/usr/local/openig-config/config \
    openidentityplatform/openig

See also