Kongdockercompose
version: "2"services:
postgres:
container_name: kong-database
network_mode: kong-net
ports:
- "5432:5432"
environment:
- POSTGRES_USER=kong
- POSTGRES_DB=kong
- POSTGRES_PASSWORD=kong
volumes:
- "/dockerV/postgres:/var/lib/postgresql/data"
restart: always
image: "postgres:9.6"
kong:
container_name: kong
network_mode: kong-net
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-database
- KONG_PG_PASSWORD=kong
- KONG_PROXY_ACCESS_LOG=/dev/stdout
- KONG_ADMIN_ACCESS_LOG=/dev/stdout
- KONG_PROXY_ERROR_LOG=/dev/stderr
- KONG_ADMIN_ERROR_LOG=/dev/stderr
- "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl"
ports:
- "8000:8000"
- "8443:8443"
- "127.0.0.1:8001:8001"
- "127.0.0.1:8444:8444"
restart: always
image: kong
konga:
ports:
- "1337:1337"
container_name: konga
network_mode: kong-net
environment:
- DB_ADAPTER=postgres
- DB_HOST=kong-database
- DB_PORT=5432
- DB_USER=kong
- DB_PASSWORD=kong
- DB_DATABASE=konga
restart: always
image: pantsel/konga
以上是 Kongdockercompose 的全部内容, 来源链接: utcz.com/z/516278.html