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: