version: '3'

services:
  keycloak:
    image: quay.io/keycloak/keycloak:latest
    restart: always
    container_name: keycloak
    environment:
      - KEYCLOAK_ADMIN=admin
      - KEYCLOAK_ADMIN_PASSWORD=admin
      - KC_DB=postgres
      - KC_DB_URL=jdbc:postgresql://postgres/keycloak
      - KC_DB_USERNAME=postgres
      - KC_DB_PASSWORD=postgres
      - KC_HOSTNAME=localhost
      - KC_DB_SCHEMA=public
    ports:
      - "8080:8080"
    command: start-dev
    depends_on:
      - postgres
    networks:
      - [network]

networks:
  [network]:
    external: true
반응형

'Docker > docker-compose' 카테고리의 다른 글

docker-compose로 postgresql 올리기  (0) 2023.12.06
docker-compose로 Swagger 올리기  (0) 2023.09.25

+ Recent posts