This repository contains the scripts and config files that are used to produce map tiles with Planetiler for gpx.studio and deploy them to Cloudflare.
Install Docker on the server by following the instructions here: https://docs.docker.com/engine/install/ubuntu/. Then, add user to the docker group:
sudo usermod -a -G docker $USER
and log out and log in.
We use the official Docker image from Planetiler, so nothing to configure.
Install rclone
sudo -v ; curl https://rclone.org/install.sh | sudo bash
and add config with rclone config (see https://developers.cloudflare.com/r2/examples/rclone/ and https://rclone.org/s3/#cloudflare-r2).
Add the script to cron.