imap-json-fetcher/stack.staging.yml

32 lines
704 B
YAML

version: "3.7"
networks:
traefik:
external: true
default:
services:
imap-json-fetcher:
image: git.nixc.us/colin/imap-json-fetcher:staging
environment:
IMAP_HOST: "your_imap_server_address"
IMAP_USERNAME: "your_username"
IMAP_PASSWORD: "your_password"
# IMAP_FOLDER: "your_folder_name" # Optional, defaults to "INBOX"
deploy:
placement:
constraints:
- node.labels.mac-rack == true
labels:
traefik.enable: "false"
update_config:
order: stop-first
failure_action: rollback
delay: 5s
delay: 10s
parallelism: 1
restart_policy:
condition: any
delay: 5m