1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| docker service create \ --name kong \ --network my_net \ -e "KONG_DATABASE=postgres" \ -e "KONG_PG_HOST=postgres" \ -e "KONG_PG_PASSWORD=123456" \ -e "KONG_PROXY_ACCESS_LOG=/dev/stdout" \ -e "KONG_ADMIN_ACCESS_LOG=/dev/stdout" \ -e "KONG_PROXY_ERROR_LOG=/dev/stderr" \ -e "KONG_ADMIN_ERROR_LOG=/dev/stderr" \ -e "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl" \ --publish 8000:8000 \ --publish 8001:8001 \ --publish 8443:8443 \ --publish 8444:8444 \ --replicas 1 \ kong:latest
|