-
-
Save wshirey/d76a4fd4a242136105bcc20441ab4884 to your computer and use it in GitHub Desktop.
Docker-compose files for Kong
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
postgres: | |
image: postgres:9.4 | |
container_name: kong-database | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_USER=kong | |
- POSTGRES_DB=kong | |
volumes: | |
- "db-data:/var/lib/postgresql/data" | |
web: | |
image: mashape/kong:0.8.0 | |
container_name: kong | |
environment: | |
- DATABASE=postgres | |
restart: always | |
ports: | |
- "8000:8000" | |
- "443:8443" | |
- "8001:8001" | |
- "7946:7946" | |
- "7946:7946/udp" | |
links: | |
- postgres | |
ui: | |
image: pgbi/kong-dashboard | |
container_name: kong-dashboard | |
ports: | |
- "8080:8080" | |
volumes: | |
db-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
kong-database: | |
restart: on-failure | |
image: cassandra:2.2.5 | |
container_name: kong-database | |
ports: | |
- "9042:9042" | |
volumes: | |
- "db-data:/var/lib/cassandra" | |
web: | |
restart: on-failure | |
image: mashape/kong:0.8.0 | |
container_name: kong | |
ports: | |
- "8000:8000" | |
- "8443:8443" | |
- "8001:8001" | |
- "7946:7946" | |
- "7946:7946/udp" | |
links: | |
- kong-database:kong-database | |
environment: | |
- DATABASE=cassandra | |
security_opt: | |
- label:seccomp:unconfined | |
ui: | |
restart: on-failure | |
image: pgbi/kong-dashboard | |
ports: | |
- "8080:8080" | |
volumes: | |
db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment