1. Create a Docker network docker network create kong-net 2. Create a database Take PostgreSQL as an example docker run -d --name kong-database \ --network=kong-net \ -p 5432:5432 \ -e "POSTGRES_USER=kong" \ -e "POSTGRES_DB=kong" \ postgres:9.6 3. Prepare the database docker run --rm \ --network=kong-net \ -e "KONG_DATABASE=postgres" \ -e "KONG_PG_HOST=kong-database" \ -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" \ kong:latest kong migrations bootstrap 4. Pull kong and run docker run -d --name kong \ --network=kong-net \ -e "KONG_DATABASE=postgres" \ -e "KONG_PG_HOST=kong-database" \ -e "KONG_CASSANDRA_CONTACT_POINTS=kong-database" \ -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" \ -p 8000:8000 \ -p 8443:8443 \ -p 8001:8001 \ -p 8444:8444 \ kong:latest 5. Install the visual interface konga docker run -p 1337:1337 \ --network kong-net \ -e "TOKEN_SECRET=mark666" \ -e "DB_ADAPTER=postgres" \ -e "DB_HOST=0.0.0.0" \ //Pay attention to your IP address, not 0.0.0.0 or 127.0.0.1 -e "DB_PORT=5432:5432" \ -e "DB_USER=kong" \ -e "DB_PASSWORD=kong" \ -e "DB_DATABASE=kong_database" \ --name konga \ pantsel/konga The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Use the vue-element-admin framework to dynamically obtain the menu function from the backend
>>: Introduction to MySQL isolation level, lock and MVCC
1. Enter start in the menu bar and click startup ...
1. Background In actual projects, we will encount...
Table of contents 1. Learning Objectives 1.1. Mas...
1. Download address: mysql-8.0.17-winx64 Download...
Table of contents Take todolist as an example The...
Table of contents Process Communication Bidirecti...
Table of contents 1. The magical extension operat...
Last time, a very studious fan asked if it was po...
Preface JavaScript is not like other languages ...
In centos7, the permissions of the /etc/rc.d/rc.l...
Preface We may have heard of the concept of rowid...
1. Why create an index? (Advantages) This is beca...
Microsoft IIS IIS (Internet Information Server) i...
What is bond NIC bond is a technology that is com...
Usually in project development, we have to deal wi...