10 Sentinels Active
SENTINEL 01: [AEGIS] AUDITING POCKETBASE INFRASTRUCTURE...
Back to Self-Hosted Stacks
Coder

Deploy Coder

Provision software development environments as code on your infrastructure.

Quick Start

1

Create a directory

mkdir coder-self-hosted && cd coder-self-hosted
2

Create config file

Copy the content from the Config tab below into a file named docker-compose.yml

3

Deploy

docker compose up -d
Fast Track

Deploy Coder in Minutes

Use our optimized Docker templates to deploy Coder on any cloud provider. Get $200 in free credit to start on DigitalOcean.

Start with free creditDeploy on DigitalOcean
$200

Metadata

License
AGPL-3.0
Language
Go
Last Updated
10/14/2026
Category
DevOps

Configuration

yaml
services:
  coder:
    image: ghcr.io/coder/coder:latest
    container_name: coder
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy
    ports:
      - "7080:7080"
    environment:
      - CODER_PG_CONNECTION_URL=postgresql://coder:coder@db:5432/coder?sslmode=disable
      - CODER_HTTP_ADDRESS=0.0.0.0:7080
      - CODER_ACCESS_URL=http://localhost:7080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  db:
    image: postgres:14-alpine
    container_name: coder-db
    restart: unless-stopped
    environment:
      - POSTGRES_USER=coder
      - POSTGRES_PASSWORD=coder
      - POSTGRES_DB=coder
    volumes:
      - coder_db_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U coder"]
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  coder_db_data:

Community Notes

Help others by adding context, corrections, or warnings about this tool. Sign in to contribute.

No community notes yet. Be the first to add context.