NewsArchiverV2/docker-compose.yml

24 lines
461 B
YAML

version: '3.8'
services:
newsarchiver:
build:
context: .
dockerfile: Dockerfile
container_name: newsarchiver
ports:
- "5000:5000"
environment:
- ARCHIVE_DIR=/data/archives
volumes:
- newsarchiver_data:/data/archives
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 30s
timeout: 10s
retries: 3
volumes:
newsarchiver_data: