Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

keycloack docker

version: "3"
services:
  keycloak:
    image: quay.io/keycloak/keycloak:legacy
    environment:
      - KEYCLOAK_USER=admin
      - KEYCLOAK_PASSWORD=admin
      - DB_VENDOR=POSTGRES
      - DB_ADDR=pg
      - DB_PORT=5432
      - DB_USER=admin123
      - DB_PASSWORD=admin123
      - JDBC_PARAMS=ssl=false
    ports:
      - 8080:8080
    depends_on:
      - pg
    networks:
      - keycloak_network

  pg:
    image: postgres:14-alpine
    environment:
      - POSTGRES_DB=keycloak
      - POSTGRES_USER=admin123
      - POSTGRES_PASSWORD=admin123
    ports:
      - 5432:5432
    volumes:
      - pg:/var/lib/postgres
    networks:
      - keycloak_network

volumes:
  pg:

networks:
  keycloak_network:
Source by www.keycloak.org #
 
PREVIOUS NEXT
Tagged: #keycloack #docker
ADD COMMENT
Topic
Name
9+5 =