-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
131 lines (122 loc) · 2.71 KB
/
docker-compose.yml
File metadata and controls
131 lines (122 loc) · 2.71 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: "3.1"
networks:
main_network:
name: main_network
volumes:
mongo-data:
services:
create_service:
container_name: k_create_service_container
build:
context: ./people_service
restart: "no"
env_file:
- ./container_files/env-vars/.people-service.env
networks:
- main_network
command:
- sh
- run-prod.sh
- create
depends_on:
- mongodb
read_service:
container_name: k_read_service_container
build:
context: ./people_service
restart: "no"
env_file:
- ./container_files/env-vars/.people-service.env
networks:
- main_network
command:
- sh
- run-prod.sh
- read
depends_on:
- mongodb
update_service:
container_name: k_update_service_container
build:
context: ./people_service
restart: "no"
env_file:
- ./container_files/env-vars/.people-service.env
networks:
- main_network
command:
- sh
- run-prod.sh
- update
depends_on:
- mongodb
delete_service:
container_name: k_delete_service_container
build:
context: ./people_service
restart: "no"
env_file:
- ./container_files/env-vars/.people-service.env
networks:
- main_network
command:
- sh
- run-prod.sh
- delete
depends_on:
- mongodb
log_service:
container_name: k_log_service_container
build:
context: ./log_service
restart: "no"
env_file:
- ./container_files/env-vars/.log-service.env
networks:
- main_network
command:
- sh
- run-prod.sh
depends_on:
- mongodb
mongodb:
container_name: k_mongodb_container
image: mongo
ports:
- "27017:27017"
env_file:
- ./container_files/env-vars/.mongo.env
volumes:
- mongo-data:/data/db
networks:
- main_network
command: --quiet
kong_dbless:
image: kong:3.4.0
container_name: kong_dbless_container
hostname: kong_dbless
environment:
KONG_DATABASE: "off"
KONG_DECLARATIVE_CONFIG: /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
KONG_ADMIN_GUI_URL: http://localhost:8002
KONG_DNS_ORDER: LAST,A,CNAME
volumes:
- "./kong-gateway:/kong/declarative/"
ports:
- "8000:8000"
- "8443:8443"
- "127.0.0.1:8001:8001"
- "127.0.0.1:8444:8444"
networks:
- main_network
depends_on:
- create_service
- read_service
- update_service
- delete_service
- log_service