-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (36 loc) · 982 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
37 lines (36 loc) · 982 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
36
37
services:
mailpilot:
image: ghcr.io/metal0/mailpilot:latest
# Or build locally:
# build: .
container_name: mailpilot
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./config.yaml:/app/config.yaml:ro
- ./data:/app/data
- ./logs:/app/logs
environment:
- LLM_OPENAI_API_KEY=${LLM_OPENAI_API_KEY}
- STATUS_API_TOKEN=${STATUS_API_TOKEN}
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
# For ClamAV antivirus scanning, use the override file:
# docker compose -f docker-compose.yaml -f docker-compose.clamav.yaml up -d
# See docs/antivirus.md for configuration details.