-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.31 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
58
59
version: '2'
services:
kong-migration:
build: ./api-gateway
links:
- kong-postgres
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-postgres
- KONG_PLUGINS=bundled,demoauth
command: kong migrations bootstrap
api-gateway:
build: ./api-gateway
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-postgres
- KONG_LOG_LEVEL=debug
- 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
- KONG_PLUGINS=bundled,demoauth
- KONG_NGINX_PROXY_GZIP=on
- KONG_NGINX_PROXY_GZIP_TYPES="text/plain application/json"
links:
- cache-service
- profile-service
- search-service
- kong-postgres
depends_on:
- kong-migration
ports:
- "8000:8000"
- "8001:8001"
kong-postgres:
image: postgres:alpine
environment:
- POSTGRES_DB=kong
- POSTGRES_USER=kong
ports:
- "5433:5432"
cache-service:
build:
context: ./cache-service
args:
env: "docker"
profile-service:
build: ./profile-service
search-service:
build: ./search-service
links:
- cache-service
- profile-service