从 2.8 版本升级到当前最新的 3.4 版本
kong-migrations-up:
image: "${KONG_DOCKER_TAG:-kong:latest}"
command: kong migrations up && kong migrations finish
profiles: [ "database" ]
depends_on:
- kong-database
environment:
<<: *kong-env
networks:
- kong-net
restart: on-failure
在 docker compose 配置中添加一份迁移服务,按照 https://docs.konghq.com/gateway/latest/upgrade/ 的指示从 *Upgrade to 3.1.1.3, upgrade to 3.2.x, upgrade to 3.3.x, and then upgrade to 3.4.x. * 升级即可