0

我正在尝试在 docker 内使用 Konga 和 kong。

  #######################################

  # Konga database prepare

  #######################################

  konga-prepare:

    container_name: konga-prepare

    image: pantsel/konga:0.14.9

    command: "-c prepare -a postgres -u postgresql://kong:password@kong-database:5432/konga_db"

    networks:

      - kong-net

    restart: on-failure

    links:

      - kong-database

    depends_on:

      - kong-database



  #######################################

  # Konga: Kong GUI

  #######################################

  konga:

    container_name: konga

    image: pantsel/konga:0.14.9

    restart: unless-stopped

    networks:

      - kong-net

    environment:

      DB_ADAPTER: postgres

      DB_HOST: kong-database

      DB_USER: kong

      DB_PASSWORD: password

      DB_DATABASE: konga_db

      # any string will OK for token

      TOKEN_SECRET: iu7YDcPLiZkozQXzZ9kka3Ee1Vid5ZgQ

      NODE_ENV: development

    depends_on:

      - konga-prepare

    ports:

      - "1337:1337"

问题是每次我做 docker-compose up 时,Konga 都会要求新的管理员,不知道为什么它不保留我创建的管理员。

请帮忙

4

0 回答 0