-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
137 lines (130 loc) · 3.03 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
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
version: '3.8'
services:
database:
image: postgres:15.3-alpine3.18
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: atlan
POSTGRES_DB: database
volumes:
- ./Database_Data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
api_gateway:
build:
context: ./API_Gateway
env_file:
- ./API_Gateway/.env
- services_urls
x-develop:
watch:
- action: sync
path: ./API_Gateway/main.py
target: /app/main.py
- action: rebuild
path: ./API_Gateway/requirements.txt
depends_on:
database:
condition: service_healthy
ports:
- "5000:80"
db_handler:
build:
context: ./Database_Handler
env_file:
- services_urls
- ./Database_Handler/.env
x-develop:
watch:
- action: sync
path: ./Database_Handler/main.py
target: /app/main.py
- action: rebuild
path: ./Database_Handler/requirements.txt
depends_on:
database:
condition: service_healthy
form_validation:
build:
context: ./Form_Validation
env_file:
- ./Form_Validation/.env
- services_urls
x-develop:
watch:
- action: sync
path: ./Form_Validation/main.py
target: /app/main.py
- action: rebuild
path: ./Form_Validation/requirements.txt
depends_on:
database:
condition: service_healthy
search_slangs:
build:
context: ./Search_Slangs
env_file:
- ./Search_Slangs/.env
- services_urls
x-develop:
watch:
- action: sync
path: ./Search_Slangs/main.py
target: /app/main.py
- action: rebuild
path: ./Search_Slangs/requirements.txt
depends_on:
database:
condition: service_healthy
google_sheets:
build:
context: ./Google_Sheets
env_file:
- services_urls
- ./Google_Sheets/.env
x-develop:
watch:
- action: sync
path: ./Google_Sheets/main.py
target: /app/main.py
- action: rebuild
path: ./Google_Sheets/requirements.txt
depends_on:
database:
condition: service_healthy
sms_alert:
build:
context: ./SMS_Alert
env_file:
- ./SMS_Alert/.env
- services_urls
x-develop:
watch:
- action: sync
path: ./SMS_Alert/main.py
target: /app/main.py
- action: rebuild
path: ./SMS_Alert/requirements.txt
depends_on:
database:
condition: service_healthy
logger:
build:
context: ./Log_Service
env_file:
- ./Log_Service/.env
- services_urls
x-develop:
watch:
- action: sync
path: ./Log_Service/logger.py
target: /app/logger.py
- action: rebuild
path: ./Log_Service/requirements.txt
volumes:
- ./Log_Service/logs:/app/logs
ports:
- 5005:80