forked from hmake98/nestjs-microservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
104 lines (104 loc) · 2.22 KB
/
docker-compose.prod.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
101
102
103
104
version: "3.2"
services:
user:
image: hmake98/nestms-user:latest
env_file:
- ./user/.env
post:
image: hmake98/nestms-post:latest
env_file:
- ./post/.env
notification:
image: hmake98/nestms-notification:latest
env_file:
- ./notification/.env
files:
image: hmake98/nestms-files:latest
env_file:
- ./files/.env
mailer:
image: hmake98/nestms-mailer:latest
env_file:
- ./mailer/.env
logger:
image: hmake98/nestms-logger:latest
env_file:
- ./logger/.env
token:
image: hmake98/nestms-token:latest
env_file:
- ./token/.env
kong:
image: hmake98/kong:latest
command: "kong start"
environment:
KONG_DATABASE: "off"
KONG_DECLARATIVE_CONFIG: /usr/local/kong/declarative/kong.yml
KONG_PROXY_LISTEN: 0.0.0.0:8080
KONG_PROXY_LISTEN_SSL: 0.0.0.0:8443
KONG_ADMIN_LISTEN: 0.0.0.0:9000
ports:
- 8080:8080
- 9000:9000
database:
image: postgres:latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=master123
- POSTGRES_DB=postgres
ports:
- 5432:5432
volumes:
- pg_data:/var/lib/postgresql/data
rabbitmq:
image: "rabbitmq:3-management"
volumes:
- rabbit_data:/var/lib/rabbitmq
ports:
- 5672:5672
- 15672:15672
env_file:
- .env
cache:
image: redis:latest
ports:
- 6379:6379
mongodb:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: master123
ports:
- 27017:27017
volumes:
- mongo_data:/data/db
fluent-bit:
hostname: fluentd
build:
context: ./fluent-bit
dockerfile: Dockerfile
container_name: fluent-bit
environment:
- LOKI_URL=http://loki:3100/loki/api/v1/push
ports:
- "24224:24224"
- "24224:24224/udp"
volumes:
mongo_data:
driver_opts:
performance-mode: maxIO
throughput-mode: bursting
uid: 0
gid: 0
pg_data:
driver_opts:
performance-mode: maxIO
throughput-mode: bursting
uid: 0
gid: 0
rabbit_data:
driver_opts:
performance-mode: maxIO
throughput-mode: bursting
uid: 0
gid: 0