Skip to content

Getting Started

What you need

RAM 4 GB recommended. A running instance is comfortable there, including tiling. 2 GB has been tested and runs well — but see the warning below: building the dashboard, which happens during an update, needs more memory than running it.
CPU 2 cores recommended; 1 is enough to get started. Tiling and raster conversion are the only CPU-heavy steps, and they run in the background.
Disk Depends entirely on your data, not on GeoDeploy. The software itself is small; layers are what grow.
Domain Optional, but recommended — a stable portal URL, and HTTPS once you put a reverse proxy in front (how). GeoDeploy does not yet obtain its own certificate.

Check you have swap — many VPS images ship with none

This is not only a small-server concern. Building GeoDeploy peaks far above what running it needs (an update compiles the dashboard with Vite/Node), and on a machine with no swap Linux kills the build rather than slowing it down. The symptom is nasty: the update appears to hang, and you are left with stopped containers and no new image.

Most cloud images ship with no swap file at all, so check first — free -m, and look at the Swap row. If it reads 0, add some whatever your RAM:

# Safe to run twice: it skips what is already done.
if ! swapon --show | grep -q '^/swapfile '; then
  sudo fallocate -l 2G /swapfile && sudo chmod 600 /swapfile
  sudo mkswap /swapfile && sudo swapon /swapfile
fi
grep -q '^/swapfile ' /etc/fstab || echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
swapon --show                                                # confirm

sudo: unable to resolve host <name> printed along the way is harmless: the server's own name is missing from /etc/hosts, which is common on fresh cloud images. The command still runs. To silence it for good (and for the installer, which uses sudo too): echo "127.0.1.1 $(hostname)" | sudo tee -a /etc/hosts

The less RAM you have the sooner it bites — on 2 GB it is close to certain — but a 4 GB server with no swap and a busy worker can hit it too.

Swap is insurance, not a tax: what gets paged out is mostly idle build memory, so in practice the build runs at normal speed — it simply stops being killed. Measured on a 2 CPU / 2 GB VPS, adding swap turned a build that died into one that finished with no noticeable slowdown.

If you would rather not add swap, build the two images one at a time (docker compose build geodeploy-ui, then geodeploy-api) instead of letting the updater do both.

Disk is the one to think about

Storage is the only requirement that scales with use, and you are not stuck with the disk you start on: point GeoDeploy at S3-compatible object storage during setup (or later) and capacity stops being a server decision. That is the right choice if you expect many layers or large rasters — it expands on demand, at whatever your provider charges.

Docker is installed for you if it is missing. Docker Compose is only checked for — if your distribution does not ship it, the installer stops and tells you to install docker-compose-plugin first. On a current Debian or Ubuntu it is already there.

Install

curl -fsSL https://raw.githubusercontent.com/bravemaster3/geodeploy/main/installer/install.sh | bash

This command: 1. Clones the GeoDeploy repository to ~/geodeploy 2. Checks the machine — Docker, swap, which ports are free, what else is already serving 3. Asks how GeoDeploy should be published (see below) 4. Generates a .env file with a random secret key 5. Starts the core Docker services 6. Opens the setup wizard, and prints the address

What the installer asks you

GeoDeploy never takes ports 80 and 443 without being told it may — not even on an empty server — and it never stops or reconfigures anything already running. So before it starts anything it reports what it found on the machine and offers three choices:

  1. Make this machine a dedicated GeoDeploy server. GeoDeploy takes port 80 and answers at http://your-server-ip, with no port in the address. It becomes the machine's web server, so anything else that wants port 80 afterwards will fail to start. The right answer on a VPS you bought for this, and what the installer recommends when nothing else is serving. It is offered but refused if something already holds port 80 — the installer will not stop that service for you.
  2. Use the default port. GeoDeploy listens on 127.0.0.1 on the first port that is actually free, reachable only from the server itself, and an nginx, Caddy or Apache you already run publishes it on a domain. The right answer on a lab server, a shared machine, or anything already hosting a site — and what the installer recommends when it finds port 80 in use.
  3. Choose a different port. The same as 2, on a port you name. It exists because plenty of operators already know the port their proxy configuration refers to. The installer shows which ports are free at that moment and accepts any other you type; one that is taken is refused, with the process holding it named.

Options 2 and 3 are the same mode — it is called behind-proxy, which is the word .env, installer/set-port.sh --show and the dashboard all use for it. Option 1 is dedicated.

Choosing 2 or 3 asks one more question: the domain you intend to use, if you know it yet. Blank is fine — it only pre-fills the field in the dashboard so you do not have to type it twice.

You can change your mind later with one command (sudo bash installer/set-port.sh --dedicated, or a port number). The full story — the SSH tunnel that gets you to the dashboard before you have a domain, the dashboard configuring your existing web server for you, and what breaks if it is wrong — is in Installing alongside other software.

If the installer has no terminal to ask with (cloud-init, Ansible, CI), set GEODEPLOY_DEPLOY_MODE to dedicated or behind-proxy in the environment, optionally with GEODEPLOY_HTTP_PORT. With neither a terminal nor a setting, it installs behind-proxy on a free local port: the only choice that takes nothing from the machine.

Setup wizard

The wizard runs automatically on first visit and takes about 2 minutes.

Step 1 — Database. Either let GeoDeploy install and manage PostgreSQL + PostGIS on this server, or point it at a database you already run. Neither is "the right one": the first is for people who do not already run a spatial database, the second for people who do, or who want the database on separate hardware.

Step 2 — File storage. Either let GeoDeploy install and manage SILO here — the maintained, MinIO-compatible storage server — or use any S3-compatible provider. Local storage is limited by this machine's disk; S3 grows on demand and is billed by use.

Step 3 — Admin account. Create your login.

After setup you land on the dashboard. You never return to the wizard.

Connecting a database you already run

Three things to know, in the order they bite:

The port must be reachable from this server. A timeout at this step is a network fact — the credentials are never examined — so check the database listens on a public address (listen_addresses = '*'), that the port is published, and that no firewall, including your provider's, blocks it. The wizard names which of these it hit.

PostGIS is per-database, not per-server. A server with PostGIS installed still needs CREATE EXTENSION postgis; in the specific database you name. Images such as postgis/postgis seed template1, so databases created afterwards inherit it; a plain PostgreSQL server with the extension merely available does not.

Point it at a database that does not already contain GeoDeploy — unless you mean to reconnect to one, below.

Reconnecting to an existing GeoDeploy database

Pointing the wizard at a database that already holds an installation is supported, and is how you rebuild a lost server without a backup: the database holds your accounts, layers, portals and the instance's own settings.

The wizard recognises it, restores those settings into .env, and offers two choices:

  • Sign in — the installation is intact and there is nothing to set up.
  • Create a new database — name one and GeoDeploy creates it on the same server, with PostGIS enabled, then continues the fresh install against it.

Carry GEODEPLOY_SECRET_KEY across, or lose three settings

The SMTP password, the OIDC client secret and the storage secret key are encrypted at rest with the key in .env — which is deliberately not in the database and not in any backup, so that a stolen backup cannot hand over your credentials.

Reconnect with a different key and everything is recovered except those three, which must be re-entered. Copy the old GEODEPLOY_SECRET_KEY into the new .env before running the wizard and nothing is lost. See Backups and restore.

Giving it a domain name

After the wizard you have a working GeoDeploy at an IP address or a local port. Turning that into https://maps.example.org takes three steps, and the dashboard does or walks you through all three — Settings → Infrastructure → Deployment. What follows is the same thing in prose, so you know what you are agreeing to before you start.

You do not need to buy a new domain. If you already own example.org, a subdomain such as maps.example.org costs nothing and is created in the same control panel.

1 · Point the domain at your server

In whoever manages your domain — Cloudflare, Namecheap, GoDaddy, your registrar — add a single A record:

Field Value
Type A
Name maps — the subdomain only. The panel appends example.org itself.
Value / Points to your server's public IP address, e.g. 203.0.113.10
TTL Auto, or 300
Proxy status (Cloudflare only) DNS only — the grey cloud, to start with

The dashboard shows your server's public address with a copy button, so you do not have to go and find it. It also checks the record for you and tells the difference between not propagated yet (wait; usually minutes) and pointing at a different machine (fix the record) — those need opposite reactions, which is why it is a step of its own.

The two mistakes almost everyone makes here

Typing the full name in the Name field. Most panels append the zone, so entering maps.example.org gives you maps.example.org.example.org. Enter maps.

Leaving Cloudflare's SSL/TLS mode on Full before you have a certificate. Proxied means Cloudflare answers DNS with its own addresses and terminates HTTPS itself — a fine end state. But on Full or Full (strict) Cloudflare connects to your server over HTTPS, and until it has a certificate that is a 525 error and a failed ACME challenge. Use Flexible until the certificate exists, then switch to Full (strict).

2 · Put a reverse proxy in front

A reverse proxy is the piece that answers on ports 80/443, holds the HTTPS certificate, and forwards requests to GeoDeploy. The dashboard offers two routes, side by side, and neither is a fallback for the other:

Let GeoDeploy configure it. It works out what is already in front of it — nginx, Caddy or Apache, running on the host or in a container — adds one new file to that server's drop-in directory (geodeploy.conf, carrying a managed by GeoDeploy marker), tests the configuration, and reloads. It never edits nginx.conf, your Caddyfile, or any other site's configuration, and it never restarts anything. Remove it takes the file away again and reloads, testing first.

It also refuses rather than guesses, and the refusals are the point of the feature. It stops, with the reason, if your configuration does not already pass its own test (reloading would be what finally published somebody else's latent breakage), if the domain is already served on this machine, if a file of that name exists that GeoDeploy did not write, or if the drop-in directory is not actually included by the main configuration. Traefik gets precise manual instructions instead of a button, because its routing lives in container labels or a file provider and there is no file to drop.

I'll configure it myself. The same configuration as text, for you to place. If you would rather own every change to your own web server — a reasonable position on a machine other people depend on — this route is always available and always offered.

If you are choosing a proxy and the machine is yours, Caddy is three lines and gets the certificate automatically:

maps.example.org {
    reverse_proxy 127.0.0.1:8080
}

For nginx there are four settings that are not optional — without them shared links point at 127.0.0.1, and uploads over 1 MB fail with a 413. The generated block includes them, with a comment on each explaining what breaks; the full version is in Installing alongside other software.

If this machine already serves HTTPS for another site

The block GeoDeploy writes listens on port 80. If something else already holds port 443 — especially a server_name _; catch-all, which answers for every hostname — then https://your-domain reaches that site, not GeoDeploy, until your domain has its own certificate. http:// works immediately.

Behind Cloudflare this decides everything, because the SSL/TLS mode picks which origin port Cloudflare connects to:

Cloudflare SSL/TLS mode Connects to your server on Before you have a certificate
Flexible port 80 works
Full / Full (strict) port 443 you get the other site, or a 525/526 error

Use Flexible until the certificate exists, then Full (strict). The dashboard warns about this before you apply and checks port 443 as well as port 80 afterwards.

2b · HTTPS

  • Caddy obtains and renews the certificate itself. Nothing to do.
  • nginx — press Get a certificate. GeoDeploy runs certbot in a throwaway container, so nothing is installed on your machine, obtains a Let's Encrypt certificate, rewrites its own block to serve HTTPS, tests and reloads — then renews it daily.
  • Apache is not automated yet: sudo certbot --apache -d your-domain.

It is a separate button, never folded into Apply, because it reaches an external certificate authority under terms you accept and puts the hostname in the public Certificate Transparency log.

The challenge is a file fetched over port 80, so port 80 must be reachable for that name. Behind Cloudflare it normally passes straight through the proxy — if it fails, grey-cloud the record for two minutes and retry. Afterwards, set SSL/TLS to Full (strict) and turn on Always Use HTTPS: your server now has its own certificate, and GeoDeploy deliberately does not redirect port 80 on a Cloudflare-fronted site, because on Flexible that loops forever. The full story is in Installing alongside other software.

3 · Verify

Press Verify in the dashboard. It resolves the domain, reaches it from the server, and confirms the request lands on this instance with the hostname intact — reporting each check separately, so a failure tells you which part to fix rather than just "it does not work".

That last check matters more than it looks: GeoDeploy builds every link it hands out — shared links, portal previews, the STAC and OGC catalogues — from the hostname the request arrived on. A proxy that forgets to pass it produces links pointing at an address nobody else can open, and nothing else notices for days.

If GeoDeploy took port 80 (the dedicated option)

It serves plain HTTP on your IP address and does not yet obtain its own certificate. To get HTTPS, move it to a local port and put a proxy in front — one command, reversible:

cd ~/geodeploy && sudo bash installer/set-port.sh 8080

Then follow the three steps above. Automatic certificates in dedicated mode are on the roadmap.

Upload your first dataset

  1. Go to My Data and choose Upload vector or Upload raster.
  2. Drop the file in — Shapefile (.zip), GeoPackage, GeoJSON, CSV or GeoParquet for vectors, GeoTIFF for rasters.
  3. GeoDeploy validates it, reads its coordinate system, and stores it — in PostGIS or as GeoParquet for vectors, as a Cloud-Optimized GeoTIFF for rasters.
  4. The row shows Ready when it can be added to a portal.

Your coordinate system is kept

Data is stored in its own CRS, not flattened to EPSG:4326 on the way in. Portal maps draw in Web Mercator like every web map, but a download can give you the original projection back — nothing is silently reprojected underneath you.

How long step 3 takes depends entirely on the file: a small GeoJSON is near-instant, while a large dataset is converted and tiled in the background and takes as long as it takes. You can leave the page — processing continues, and the row updates when it is done.

Publish your first portal

  1. Go to Portals → New portal
  2. Give it a title and click Create
  3. In the editor: click + Add to add your layers
  4. Choose a template
  5. Click Publish — your portal is live at http://your-server/portals/your-portal-name/

If GeoDeploy is already installed here

Running the install command again on a machine that already has GeoDeploy is safe, and is a supported way to move to a different version. It updates the checkout, rebuilds and restarts — and deliberately changes nothing about where the instance lives:

  • The port is kept. It is not re-picked, even if the port it originally avoided is now free, and even if you pass a different one. Your reverse proxy, your DNS record and everyone's bookmarks all point at that number. To move it, use installer/set-port.sh.
  • Your data is untouched — data/ and .env are outside version control.
  • The setup wizard does not run again.

One thing to know: the installer does a git reset --hard onto the version you asked for, so any edits you made to tracked files are discarded — docker-compose.yml, nginx/nginx.conf, and so on. Settings belong in .env, which is never touched. If you have customised a tracked file, keep it as a patch or a fork.

To install to a different directory, set GEODEPLOY_DIR:

GEODEPLOY_DIR=/opt/geodeploy curl -fsSL …/install.sh | bash

Can I run two GeoDeploys on one machine?

Not yet, and the installer will refuse rather than let you try. It is on the roadmap.

Five containers still have fixed names — geodeploy-postgres, -redis, -minio, -martin, -titiler — and every instance joins the same Docker network, where the first one's database answers to the generic name postgres. A second instance would not merely collide: its API could connect to the first instance's database. Rather than risk that, preflight detects an existing installation anywhere on the machine and stops, naming the directory it found.

Note this is different from running GeoDeploy alongside other software, which is fully supported — see Installing alongside other software. It is specifically two copies of GeoDeploy that cannot coexist.

Removing it again

One command, and it takes nothing else on the machine with it:

cd ~/geodeploy && sudo docker compose down    # stop it, keep everything

To remove it properly — including the option that deletes your data, and the things it deliberately leaves behind (Docker, your reverse-proxy config, your DNS record) — see Uninstalling.

Keeping it up to date

Update from the dashboard — Settings → Infrastructure shows the version you are running and whether a newer one exists, and updates in place, database schema included. That is the intended way; you should not need a terminal for it.

How updating works