Files
2026-07-13 12:32:21 +08:00

38 lines
807 B
YAML

version: '3.5'
services:
kong_old:
image: ${OLD_KONG_IMAGE}
command: "tail -f /dev/null"
user: root
depends_on:
- db_postgres
healthcheck:
test: ["CMD", "true"]
interval: 1s
timeout: 1s
retries: 10
environment:
KONG_PG_HOST: localhost
KONG_TEST_PG_HOST: localhost
volumes:
- ../../worktree/${OLD_KONG_VERSION}:/kong
restart: on-failure
network_mode: "host"
db_postgres:
image: postgres:9.5
environment:
POSTGRES_DBS: kong,kong_tests
POSTGRES_USER: kong
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD", "pg_isready", "-U", "kong"]
interval: 5s
timeout: 10s
retries: 10
restart: on-failure
stdin_open: true
tty: true
network_mode: "host"