-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
178 lines (168 loc) · 3.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
178 lines (168 loc) · 3.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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
services:
smb_service:
build:
context: ./smb_service
args:
- APP_VERSION=${APP_VERSION:-dev}
container_name: smb_service
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139"
- "445:445"
volumes:
- scans:/shares/Scans
restart: unless-stopped
networks:
- app-network
ocr_service:
build:
context: .
dockerfile: ocr_service/Dockerfile
args:
- APP_VERSION=${APP_VERSION:-dev}
restart: unless-stopped
volumes:
- scans:/mnt/scans
- data:/app/data
networks:
- app-network
depends_on:
- smb_service
- rabbitmq
deploy:
mode: replicated
replicas: 2
command: ["python", "main.py"]
file_naming_service:
build:
context: .
dockerfile: file_naming_service/Dockerfile
args:
- APP_VERSION=${APP_VERSION:-dev}
restart: unless-stopped
volumes:
- scans:/mnt/scans
- data:/app/data
networks:
- app-network
depends_on:
- smb_service
- rabbitmq
- redis
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
mode: replicated
replicas: 1
command: ["python", "main.py"]
detection_service:
build:
context: .
dockerfile: detection_service/Dockerfile
args:
- APP_VERSION=${APP_VERSION:-dev}
container_name: detection_service
restart: unless-stopped
volumes:
- scans:/mnt/scans
- data:/app/data
networks:
- app-network
depends_on:
- smb_service
- rabbitmq
command: ["python", "main.py"]
metadata_service:
build:
context: .
dockerfile: metadata_service/Dockerfile
args:
- APP_VERSION=${APP_VERSION:-dev}
restart: unless-stopped
volumes:
- scans:/mnt/scans
- preview-images:/app/preview-images
- data:/app/data
networks:
- app-network
depends_on:
- smb_service
- rabbitmq
deploy:
mode: replicated
replicas: 2
command: ["python", "main.py"]
upload_service:
build:
context: .
dockerfile: upload_service/Dockerfile
args:
- APP_VERSION=${APP_VERSION:-dev}
container_name: upload_service
restart: unless-stopped
volumes:
- scans:/mnt/scans
- data:/app/data
networks:
- app-network
depends_on:
- smb_service
- rabbitmq
command: ["python", "main.py"]
web-service:
restart: unless-stopped
build:
context: .
dockerfile: web_service/Dockerfile
args:
- APP_VERSION=${APP_VERSION:-dev}
ports:
- 5001:5001
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- FLASK_ENV=prod # prod or development
volumes:
# - ./web_service/src:/app/src # Only for development!!
- scans:/mnt/scans
- data:/app/data
- preview-images:/app/src/static/images/pdfpreview
networks:
- app-network
rabbitmq:
image: "rabbitmq:4-management"
restart: unless-stopped
container_name: "rabbitmq"
environment:
- TZ=Europe/Berlin
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 10s
timeout: 5s
retries: 5
networks:
- app-network
volumes:
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
redis:
image: redis:latest
restart: unless-stopped
container_name: redis
ports:
- "6379:6379"
networks:
- app-network
volumes:
- redis_data:/data
command: ["redis-server", "--save", "60", "1", "--appendonly", "yes"]
volumes:
scans:
preview-images:
data:
redis_data:
networks:
app-network: