# Lives at /opt/dadajam/compose.yml on the server. `docker compose up -d` once; Watchtower does the rest. # web = prod (frozen on the old repo's last release, dadajam:latest), web-dev = dev (every push to main of # woltsu/paahde, paahde:dev); each has its own data. services: web: image: ghcr.io/woltsu/dadajam:latest restart: unless-stopped ports: - "127.0.0.1:8086:8080" volumes: - ./data:/data # SQLite DB (+ -wal/-shm); survives redeploys stop_grace_period: 15s # time to save players on SIGTERM labels: - com.centurylinklabs.watchtower.enable=true web-dev: image: ghcr.io/woltsu/paahde:dev restart: unless-stopped ports: - "127.0.0.1:8087:8080" volumes: - ./data-dev:/data stop_grace_period: 15s labels: - com.centurylinklabs.watchtower.enable=true watchtower: # Maintained fork; containrrr/watchtower is archived and too old for Docker 29's API. image: nickfedor/watchtower:latest restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock environment: WATCHTOWER_LABEL_ENABLE: "true" # only touch containers labelled above WATCHTOWER_POLL_INTERVAL: "60" WATCHTOWER_CLEANUP: "true"