# Dew on Synology. Paste this file as the Container Manager project, with the
# docker/dew/data folder created in File Station first. The dew folder is the
# whole server: back up by stopping the project and copying the folder.
name: dew

services:
  dew:
    image: trinodeaps/dew:latest
    container_name: dew
    restart: unless-stopped
    # Shutdown waits up to 30 s for transfers to finish, then saves the audit
    # log; Docker's default 10 s would cut it short.
    stop_grace_period: 40s
    # No logging override: Container Manager's Log tab only shows logs kept
    # by DSM's default log driver.
    # Host networking, so Dew sees visitors' real IP addresses. DSM keeps 443:
    # Dew listens on 8843, and the router forwards public 443 to it. Docker
    # refuses network sysctls in host mode, so compose.yaml's TCP buffer
    # settings are left out.
    network_mode: host
    environment:
      - DEW_HTTPS_PORT=8843
    volumes:
      - ./data:/app
