29 lines
712 B
YAML
29 lines
712 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
container_name: redhead-app
|
|
ports:
|
|
- "6006:6006"
|
|
environment:
|
|
- ARCHIVE_DIR=/mnt/centralstoragemedia/Websites/ArchiveBox/data/archive/
|
|
- FLASK_ENV=production
|
|
volumes:
|
|
- .:/app
|
|
# Mount the actual archive directory
|
|
- /mnt/centralstoragemedia/Websites/ArchiveBox/data/archive/:/mnt/centralstoragemedia/Websites/ArchiveBox/data/archive/
|
|
working_dir: /app
|
|
command: python app.py
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:6006/api"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
archive-data:
|
|
driver: local
|