myst/packages/cli/examples/docker-compose.example.yml
ZTatman 29cd2f046d simplify: reduce CLI config to just Forgejo URL and PAT
Removes unnecessary configuration that operators dont need to provide:
- Removed MYST_PUBLIC_URL, MYST_ADMIN_URL (users buy their own domains)
- Removed FORGEJO_BOT_USERNAME (API returns username)
- Removed DATABASE_URL (Docker Compose handles it)
- Removed GRANT_TOKEN_SECRET (auto-generated on startup)

Simplifies init to just 2 prompts:
- Forgejo base URL
- Forgejo PAT

Adds Docker Compose example with PostgreSQL.

Verify now shows:
- FORGEJO_BASE_URL configured
- FORGEJO_PAT configured
- Forgejo is reachable
- Forgejo User <username> has <n> repositories
2026-04-15 20:53:58 -04:00

42 lines
No EOL
1,000 B
YAML

# Docker Compose example for deploying Myst with PostgreSQL
#
# Usage:
# 1. Copy to docker-compose.yml: cp examples/docker-compose.example.yml docker-compose.yml
# 2. Edit .env with your Forgejo config
# 3. Run: docker compose up -d
#
# The DATABASE_URL is auto-handled by Docker Compose networking.
services:
myst:
image: myst:latest
container_name: myst
restart: unless-stopped
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://myst:myst@db:5432/myst
env_file:
- .env
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
container_name: myst-db
restart: unless-stopped
environment:
- POSTGRES_USER=myst
- POSTGRES_PASSWORD=myst
- POSTGRES_DB=myst
volumes:
- myst-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U myst -d myst"]
interval: 5s
timeout: 5s
retries: 5
volumes:
myst-postgres: