keycloak:
image: gcr.io/my-private-1237028390/jboss/keycloak:latest ## (keycloak : v7)
restart: always
environment:
DB_VENDOR: mariadb
DB_ADDR: db
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: k3yc10ak
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: P@ssword
KEYCLOAK_HTTP_PORT: 8080
KEYCLOAK_HTTPS_PORT: 8443
JGROUPS_DISCOVERY_PROTOCOL: JDBC_PING
JGROUPS_DISCOVERY_PROPERTIES: datasource_jndi_name=java:jboss/datasources/KeycloakDS,info_writer_sleep_time=500
command:
- "-b 0.0.0.0"
- "-Dkeycloak.import=/home/peave_node/realm-export.json"
volumes:
- ./realm-export.json:/home/pecave_node/pecave/realm-export.json
- "/home/pecave_node/cert/:/etc/x509/https"
depends_on:
- db
ports:
- 8780:8080
networks:
- mydocknetwork
在 docker-compose up -d 之后,与 DB 的连接成功创建,并且 keycloak 安装继续创建所有 96 个表。这似乎是成功安装的完美场景,之后我的容器一次又一次地重新启动。请任何方式修复这个