forked from KanishJebaMathewM/Truxify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.28 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
services:
api:
build:
context: ./backend/api
target: development
ports:
- "5000:5000"
env_file:
- .env
environment:
MONGODB_URI: mongodb://mongo:27017
MONGODB_DB_NAME: truxify_telemetry
REDIS_URL: redis://redis:6379
volumes:
- ./backend/api:/app
- /app/node_modules
depends_on:
- mongo
- redis
- db
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:5000/api/health/live || curl -sf http://localhost:5000/api/health/live"]
interval: 30s
timeout: 5s
retries: 5
start_period: 15s
ml-engine:
build:
context: ./backend/ml
container_name: truxify-ml-engine
ports:
- "8001:8000"
volumes:
- ./backend/ml:/app
db:
image: postgis/postgis:15-3.3-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgrespassword}
POSTGRES_DB: ${POSTGRES_DB:-truxify}
volumes:
- postgres_data:/var/lib/postgresql/data
mongo:
image: mongo:6-jammy
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
mongo_data:
postgres_data: