-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 1.21 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
# Anvil — Application Writing Forge
# 1. Copy .env.example to .env and configure
# 2. Adjust volume mounts below to point at your directories
# 3. docker compose up -d
services:
anvil:
build: .
container_name: anvil
ports:
- "8135:5000"
volumes:
# Your application materials (each company = a subdirectory with .md files)
- ./example/applications:/data/applications
# SQLite database + backups (created automatically)
- ./data:/data/db
- ./data/backups:/data/backups
# Your research/evidence files for the sidebar (optional, read-only)
- ./example/evidence:/data/evidence:ro
environment:
- APPLICATIONS_DIR=/data/applications
- DB_PATH=/data/db/anvil.db
- BACKUP_DIR=/data/backups
- EVIDENCE_DIR=/data/evidence
- CHROMIUM_PATH=/usr/bin/chromium
# Optional: SMTP for "email to self" export
# - SMTP_HOST=smtp.example.com
# - SMTP_PORT=587
# - SMTP_USER=you@example.com
# - SMTP_PASS=your-app-password
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/')"]
interval: 30s
timeout: 10s
retries: 3