networks:
  vpn:
    external: true

services:
  duplicati:
    image: lscr.io/linuxserver/duplicati:latest
    container_name: duplicati
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=TIMEZONEHERE
      #- CLI_ARGS= #optional
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro #SOCKETHERE
      - ./duplicati-data/:/config
      - ./duplicati-backups/:/backups
      - ./duplicati-source/:/source
    ports:
      - 8200:8200
    restart: unless-stopped
    #labels:
      #caddy.tls: "internal"
      #traefik.enable: true
      #traefik.http.routers.cozy.entrypoints: web,websecure
      #traefik.http.routers.cozy.rule: Host(`DOMAINSUBNAMEHERE`)
      #traefik.http.routers.cozy.tls: true
      #traefik.http.routers.cozy.tls.certresolver: production
    healthcheck:
      disable: false #HEALTHCHECKHERE
    networks:
      vpn:
         ipv4_address: IPADDRESSHERE
