-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (70 loc) · 1.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
version: "3.8"
services:
bookings:
build:
context: ./bookings
dockerfile: Dockerfile
ports:
- 5003:5003
networks:
- kong_bookings
users:
build:
context: ./users
dockerfile: Dockerfile
ports:
- 5000:5000
networks:
- kong_users
movies:
build:
context: ./movies
dockerfile: Dockerfile
ports:
- 5001:5001
networks:
- kong_movies
showtimes:
build:
context: ./showtimes
dockerfile: Dockerfile
ports:
- 5002:5002
networks:
- kong_showtimes
database:
build:
context: ./database
dockerfile: Dockerfile
kong:
image: kong:latest
volumes:
- ./kong:/usr/local/kong/declarative
environment:
KONG_DATABASE: 'off'
KONG_DECLARATIVE_CONFIG: /usr/local/kong/declarative/kong.yml
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, 0.0.0.0:8444 ssl
ports:
- 8000:8000
- 8443:8443
- 8001:8001
- 8444:8444
healthcheck:
test: ["CMD", "wget", "-O-", "http://kong:8001/status"]
interval: 30s
timeout: 20s
retries: 5
networks:
- kong_bookings
- kong_users
- kong_movies
- kong_showtimes
networks:
kong_bookings:
kong_users:
kong_movies:
kong_showtimes: