-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 792 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 792 Bytes
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
services:
mongo:
image: mongo:7
container_name: inboxpilot-mongo
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
platform:
build:
context: .
dockerfile: Dockerfile
container_name: inboxpilot-platform
restart: unless-stopped
ports:
- "8000:8000"
environment:
- MONGODB_URI=mongodb://mongo:27017
depends_on:
mongo:
condition: service_healthy
volumes:
# Persist platform data directory so deployments/uploads survive restarts
- ./Platform/data:/app/Platform/data
volumes:
mongo_data: