Skip to main content

Docker compose Local

Caution

Only for testing on your local computer

This stack has no TLS and is published on localhost, so it is not suitable for production. For a real install, use Docker Compose or Kubernetes.

💻 Requirements

Besides the GitLab version from the common requirements (ports 80/443 and DNS do not apply to a local install), this method asks little of your machine:

  • Git
  • Docker with the Compose plugin >= 2.20.2
  • OpenSSL (used to generate the secrets)
  • Port 3000 free
  • Supported platforms: macOS (bash) and Ubuntu (bash). These are tested and supported.
⚠️ Windows / WSL

Plumber’s install scripts target native Linux and macOS. WSL (Windows Subsystem for Linux) has worked for some users, but we do not officially support it: depending on your WSL setup, how you cloned the repository and your Git settings, you may have to fix the scripts by hand. On a CRLF error (for example bad interpreter: /bin/bash^M, or a stray \r), convert the line endings with dos2unix.

🚀 Installation

The local stack runs the same four components as a production install (backend, frontend, PostgreSQL, Redis) behind a Traefik on plain HTTP, on the single origin (why) http://localhost:3000.

⏫ Update

To move the local instance to a new version, run the update script:

Terminal window
./scripts/update.sh

🧹 Remove it

The local stack is disposable. To throw it away, including its data:

Terminal window
docker compose -f compose.local.yml down -v