A browser-based coding environment with AI assistance. Write, edit, and run code directly from your browser without any local setup.
- ๐ Code from anywhere with a web browser
- ๐ค AI-powered coding assistant
- ๐ Full-featured code editor with syntax highlighting
- ๐ GitHub authentication
- ๐๏ธ PostgreSQL database integration
- Docker installed on your server
- PostgreSQL database
- GitHub OAuth App (for authentication)
Create a .env file with the following:
DATABASE_URL="postgres://user:password@host:5432/dbname"
BETTER_AUTH_SECRET="your-random-secret-key"
BETTER_AUTH_GITHUB_CLIENT_ID="your-github-client-id"
BETTER_AUTH_GITHUB_CLIENT_SECRET="your-github-client-secret"
BASE_URL="https://your-domain.com"
AI_TOKEN="your-ai-api-key"Create a docker-compose.yml file:
services:
coder:
image: ghcr.io/atticus6/coder:latest
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgres://postgres:postgres@db:5432/coder
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BETTER_AUTH_GITHUB_CLIENT_ID=githubClientId
- BETTER_AUTH_GITHUB_CLIENT_SECRET=githubClientSecret
- BASE_URL=http://localhost:3000
- AI_TOKEN=******
- WORKFLOW_TARGET_WORLD="@workflow/world-postgres"
- WORKFLOW_POSTGRES_URL=postgres://postgres:postgres@db:5432/coder
- WORKFLOW_POSTGRES_JOB_PREFIX="workflow_"
- WORKFLOW_POSTGRES_WORKER_CONCURRENCY=10
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=coder
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data:Start the services:
docker compose up -dMIT