cartogram-docker: Docker Application for Web-based Cartogram Generator
March 4, 2026 ยท View on GitHub
Local Docker deployment allows you to run cartogram-web on your own machine or private server using the provided Docker Compose setup. This is ideal for development, testing, or self-hosted deployments.
For a hassle-free online experience, you can also use the hosted version at https://go-cart.io.
Prerequisites for Windows Users
-
Install Ubuntu on Windows using Microsoft's WSL 2 Installation Guide.
๐ All subsequent instructions should be run in the Ubuntu WSL environment.
-
Add the following settings to
/etc/wsl.conf:[automount] enabled = true mountfstab = true root = /mnt/ options = metadata,uid=1000,gid=1000,umask=0022,fmask=11,case=off
Setup Instructions
-
Install Docker and Docker Compose using Official installation guide.
For Linux and Windows wsl users:
- Add your user to the docker group by using a terminal to run:
sudo usermod -aG docker $USER- Sign out and back in again so your changes take effect.
-
Clone repository:
git clone https://github.com/go-cart-io/cartogram-docker.git cd cartogram-docker -
Copy configuration files:
cp password.txt.dist password.txt && cp .env.dist .env -
Modify
password.txtand.envas needed, leavingpassword.txt.distand.env.distunchanged. -
Run the following commands from the root directory of this repository (i.e., the folder containing this readme):
export TAG=":latest" docker compose pull web docker compose up -dThe first time you run this command, it may take a while to download and install dependencies. Once everything stats up, you should be able to access the locally-running instance of go-cart.io website at http://localhost:5001.
You can also change the TAG to a specific version. For example:
export TAG=":1.0.0" -
When you would like to permanently stop the go-cart.io local instance, use the command:
docker compose down
Usage
Please follow instructions on https://guides.go-cart.io/#/tutorials/online, but access your locally-running instance at http://localhost:5001 instead of https://go-cart.io.
Server-related Actions
This repository is intended for local Docker deployments.
For server-related actions on go-cart.io, please use the cartogram-web repository. It contains the deployment workflows and scripts for:
-
Build, publish, and release a new
gocartio/cartogram-webimage (with optional server update):bash tools/docker-publish.sh -
Revert go-cart.io to a specific released version:
bash tools/revert-version.sh <version>
These scripts trigger the corresponding GitHub Actions in cartogram-web (Build, Publish, Release and Revert to a specific version on go-cart.io).
Contributing
We welcome and encourage contributions! For details on setting up a development environment and contribution guidelines, please visit our Developer Guide.
Funding
Development of this software has been supported by the Ministry of Education, Singapore, under its Academic Research Fund Tier 2 (EP2) programme (Award No. MOE-T2EP20221-0007). The views expressed in this repository are those of the authors and do not necessarily reflect the views of the Ministry of Education, Singapore.