-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
100 lines (91 loc) · 2.45 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '2'
services:
nginx:
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
command: [nginx-debug, '-g', 'daemon off;']
links:
- movies
- bookings
- showtimes
- users
ports:
- "8080:80"
kong-migration:
build: ./kong
# volumes:
# - ../kong-notification-plugin/kong/plugins/notification:/usr/local/share/lua/5.1/kong/plugins/notification:ro
links:
- kong-postgres
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-postgres
# - KONG_CUSTOM_PLUGINS=notification
command: kong migrations up
# kong-migration-test:
# build: ./kong
# volumes:
# - ../kong-notification-plugin/kong/plugins/notification:/usr/local/share/lua/5.1/kong/plugins/notification:ro
# links:
# - kong-postgres-test
# environment:
# - KONG_DATABASE=postgres
# - KONG_PG_HOST=kong-postgres-test
# - KONG_PG_DATABASE=kong_tests
# - KONG_CUSTOM_PLUGINS=notification
# command: kong migrations up
kong:
build: ./kong
# volumes:
# - ../kong-notification-plugin/kong/plugins/notification:/usr/local/share/lua/5.1/kong/plugins/notification:ro
# - ../kong-notification-plugin/spec/handler_spec.lua:/home/kong/spec/handler_spec.lua:ro
# - ../kong-notification-plugin/spec/01-access_spec.lua:/home/kong/spec/01-access_spec.lua:ro
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_CUSTOM_PLUGINS=notification
links:
- movies
- bookings
- showtimes
- users
- kong-postgres
# - kong-postgres-test
depends_on:
- kong-migration
# - kong-migration-test
ports:
- "9000:8000"
- "9001:8001"
kong-postgres:
image: postgres:alpine
environment:
- POSTGRES_DB=kong
- POSTGRES_USER=kong
ports:
- "5433:5432"
# kong-postgres-test:
# image: postgres:alpine
# environment:
# - POSTGRES_DB=kong_tests
# - POSTGRES_USER=kong
# ports:
# - "5434:5432"
movies:
build: ./movies
bookings:
build: ./bookings
showtimes:
build: ./showtimes
users:
build: ./users
links:
- bookings
- movies