forked from Kong/docker-kong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.05 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
#######################################
# Kong
#######################################
kong-database:
image: postgres:9.4
ports:
- 5432
environment:
- POSTGRES_USER=kong
- POSTGRES_DB=kong
networks:
- nginx-proxy
kong:
image: kong
restart: always
links:
- kong-database:kong-database
external_links:
- product_api_1:api-product
- file_api_1:api-file
- swaggerui_swagger-ui_1:api-documentation
ports:
- 8000
- 8001
expose:
- 7946
- 7946/udp
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-database
- VIRTUAL_HOST=api.agrano-dev.ch
- VIRTUAL_PORT=8000
networks:
- nginx-proxy
# User: langhard
# Password: Y1438!1S5J6M^Auot5kM
kong-admin:
image: pantsel/konga
links:
- kong
environment:
- VIRTUAL_HOST=api-manager.agrano-dev.ch
- VIRTUAL_PORT=1338
networks:
- nginx-proxy
networks:
nginx-proxy:
external:
name: nginx-proxy