services: my-keycloak: image: quay.io/keycloak/keycloak:24.0 environment: KC_HOSTNAME: localhost KC_HOSTNAME_PORT: 8180 KC_HOSTNAME_STRICT_BACKCHANNEL: "true" KEYCLOAK_ADMIN: admin KEYCLOAK_ADMIN_PASSWORD: admin KC_HEALTH_ENABLED: "true" KC_LOG_LEVEL: info healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8180/health/ready"] interval: 15s timeout: 2s retries: 15 command: ["start-dev", "--http-port", "8180", "--https-port", "8443"] ports: - "8180:8180" - "8443:7443" networks: - local_network networks: local_network: driver: bridge