Docker-Compose : Keycloak

Docker-Compose : Keycloak

Table of Contents

docker-compose.yml

version: '3.3'

services:
  postgres:
    restart: unless-stopped
    image: postgres
    container_name: keycloak_postgres
    volumes:
      - ./postgres_data:/var/lib/postgresql/data
    environment:
      POSTGRES_DB: keycloak
      POSTGRES_USER: keycloak
      POSTGRES_PASSWORD: password
  keycloak:
    container_name: keycloak
    restart: unless-stopped
    image: jboss/keycloak:latest
    environment:
      PROXY_ADDRESS_FORWARDING: 'true'
      DB_VENDOR: POSTGRES
      DB_ADDR: postgres
      DB_DATABASE: keycloak
      DB_USER: keycloak
      DB_PASSWORD: password
      KEYCLOAK_USER: admin
      KEYCLOAK_PASSWORD: password
    ports:
      - 8083:8080
    depends_on:
      - postgres
Les commentaires sont fermés.