Skip to main content
Running on Podman, containerd, or another container runtime? See Container Runtimes.
From v5.5.0 onwards, Docker images are based on distroless. You cannot obtain a shell with docker run --rm -it tykio/tyk-gateway:v5.5.0 sh. Use dive or Docker Desktop to inspect images.

Prerequisites

Instructions

Step 1: Clone and configure

  1. Clone the tyk-install repository and navigate to the Docker self-managed directory:
  2. Copy the example environment file and add your license keys:
  3. Open .env and set your license keys:
    Ensure there are no spaces around the = sign. Spaces will cause the configuration to fail silently.

Step 2: Start services

Wait for all health checks to pass (approximately 30–60 seconds), then verify all containers are running:
Expected containers: If any container is not running, check the logs:

Step 3: Bootstrap the stack

Choose one of the following options to complete the initial setup. Use the Bootstrap Utility from the repository to automatically create an organization, admin user, test API, policy, API key, and Portal configuration.
  1. Navigate to the bootstrap utility directory and create an .env file with your license key:
  2. Run the bootstrap:
Credentials are printed to the terminal on completion.

Option B: Manual bootstrap

  1. Open http://localhost:3000 in your browser.
  2. Fill in the bootstrap form:
    • Organization Name
    • Admin Email
    • Admin Password
    Use a combination of alphanumeric characters with both upper and lower case letters for your password.
  3. Click Bootstrap to save.
  4. Log in to the Tyk Dashboard at http://localhost:3000 with the credentials you just created.
  5. Bootstrap the Developer Portal by calling its API:
    Save the api_token from the response — you will need it to configure the Portal provider.

Step 4: Verify the installation

Test that all components are responding:

Access URLs

Configuration

The following environment files control each component’s settings: For production deployments, review the Planning for Production guide and apply the recommendations noted in the config file comments.

Cleanup

Stop all services and remove volumes:
To also remove orphaned networks: