-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
159 lines (149 loc) · 3.59 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: "3.9"
networks:
ms-network:
driver: bridge
services:
frontend-service:
build:
context: ./frontend
dockerfile: Dockerfile.prod
ports:
- "3000:3000"
networks:
- ms-network
restart: on-failure
discovery-service:
build:
context: ./backend/discovery-service
dockerfile: Dockerfile.prod
ports:
- "8761:8761"
networks:
- ms-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8761/actuator/health"]
interval: 10s
timeout: 5s
retries: 5
restart: on-failure
gateway-service:
build:
context: ./backend/gateway-service
dockerfile: Dockerfile.prod
ports:
- "8760:8760"
depends_on:
discovery-service:
condition: service_healthy
networks:
- ms-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8760/actuator/health"]
interval: 10s
timeout: 5s
retries: 5
environment:
JWT_SECRET: ${JWT_SECRET}
restart: on-failure
main-service:
build:
context: ./backend/main-service
dockerfile: Dockerfile.prod
ports:
- "8000:8000"
depends_on:
redis:
condition: service_healthy
discovery-service:
condition: service_healthy
gateway-service:
condition: service_healthy
networks:
- ms-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/actuator/health"]
interval: 10s
timeout: 5s
retries: 5
environment:
DEVLOG_GOOGLE_CLIENT_ID: ${DEVLOG_GOOGLE_CLIENT_ID}
DEVLOG_GOOGLE_CLIENT_SECRET: ${DEVLOG_GOOGLE_CLIENT_SECRET}
ORACLE_USERNAME: ${ORACLE_USERNAME}
ORACLE_PASSWORD: ${ORACLE_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
RECAPTCHA_PRIVATE_KEY: ${RECAPTCHA_PRIVATE_KEY}
volumes:
- ${ORACLE_WALLET_PATH}:${ORACLE_WALLET_PATH}
- /home/static/resource:/home/static/resource
restart: on-failure
mail-service:
build:
context: ./backend/mail-service
dockerfile: Dockerfile.prod
ports:
- "8001:8001"
depends_on:
redis:
condition: service_healthy
networks:
- ms-network
environment:
DEVLOG_MAIL_USERNAME: ${DEVLOG_MAIL_USERNAME}
DEVLOG_MAIL_PASSWORD: ${DEVLOG_MAIL_PASSWORD}
restart: on-failure
llm-service:
build:
context: ./backend/llm-service
dockerfile: Dockerfile.prod
ports:
- "8100:8100"
depends_on:
discovery-service:
condition: service_healthy
gateway-service:
condition: service_healthy
networks:
- ms-network
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
restart: on-failure
sitemap-service:
build:
context: ./backend/sitemap-service
dockerfile: Dockerfile.prod
ports:
- "8002:8002"
depends_on:
discovery-service:
condition: service_healthy
gateway-service:
condition: service_healthy
main-service:
condition: service_healthy
networks:
- ms-network
volumes:
- /home/app/frontend/sitemap:/app/sitemap
- /home/app/backend/sub-sitemap:/app/sub-sitemap
restart: on-failure
redis:
image: redis:7.4
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- ms-network
restart: on-failure
dozzle:
image: amir20/dozzle:latest
ports:
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- ms-network
restart: on-failure