This is the image we're using for our tile server at http://t1.openseamap.org. It is based on phusion/baseimage-docker. The Dockerfile is based on raumzeitlabor/mediawiki-docker.
The image serves tiles from the /data
volume. In case a file is not found
/data/empty.png
is returned.
docker-compose build
CR_PAT=<TOKEN>
USERNAME=<USERNAME>
echo $CR_PAT | docker login ghcr.io -u $USERNAME --password-stdin
docker tag seamark ghcr.io/openseamap/seamark:latest
docker push ghcr.io/openseamap/seamark:latest
To set up this container, simply copy the startup script and docker compose file to host.
sudo cp tiles.service /etc/systemd/system/multi-user.target.wants/[email protected]
sudo cp docker-compose.yml /etc/docker/compose/seamark/docker-compose.yml
run sudo systemctl daemon-reload
, followed by sudo systemctl start [email protected]
.
The service file mounts /var/data/tiles
as /data
inside the container.