glitchtip yml - error diagnostics

This commit is contained in:
Dobromir Popov
2025-05-21 14:07:40 +03:00
parent 22f113e6a4
commit 8b05136f60

View File

@ -1,55 +1,97 @@
version: '3' version: '3.8'
x-environment: &default-environment
# Required settings
DATABASE_URL: postgres://postgres:postgres_password@postgres:5432/postgres
SECRET_KEY: change_me_to_a_random_string_at_least_32_characters_long
PORT: 8000 # Internal port remains 8000
GLITCHTIP_DOMAIN: https://errors.yourdomain.com
DEFAULT_FROM_EMAIL: errors@yourdomain.com
# Email configuration (uncomment and configure one option)
EMAIL_URL: smtp://username:password@smtp.yourdomain.com:587
# MAILGUN_API_KEY: your_mailgun_key
# EMAIL_BACKEND: anymail.backends.mailgun.EmailBackend
# SENDGRID_API_KEY: your_sendgrid_key
# EMAIL_BACKEND: anymail.backends.sendgrid.EmailBackend
# Performance settings
UWSGI_WORKERS: 2
CELERY_WORKER_CONCURRENCY: 2
# Data retention settings
GLITCHTIP_MAX_EVENT_LIFE_DAYS: 90
GLITCHTIP_MAX_TRANSACTION_EVENT_LIFE_DAYS: 90
GLITCHTIP_MAX_FILE_LIFE_DAYS: 180
# Security settings
ENABLE_USER_REGISTRATION: false
ENABLE_ORGANIZATION_CREATION: false
x-depends_on: &default-depends_on
- postgres
- redis
services: services:
postgres:
image: postgres:16
environment:
POSTGRES_PASSWORD: postgres_password
POSTGRES_DB: postgres
POSTGRES_USER: postgres
restart: unless-stopped
volumes:
- pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: valkey/valkey:latest
restart: unless-stopped
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
web: web:
image: glitchtip/glitchtip:latest image: glitchtip/glitchtip:latest
restart: unless-stopped depends_on: *default-depends_on
depends_on:
- postgres
- redis
ports: ports:
- "8800:8000" - "8800:8000" # Changed external port to 8800
environment: environment: *default-environment
- SECRET_KEY=your_random_secret_key_here restart: unless-stopped
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres volumes:
- REDIS_URL=redis://redis:6379/0 - uploads:/code/uploads
- GLITCHTIP_DOMAIN=https://glitchtip.yourdomain.com healthcheck:
- EMAIL_URL=smtp://email:password@smtp_url:port test: ["CMD", "curl", "-f", "http://localhost:8000/health/"]
- DEFAULT_FROM_EMAIL=info@yourdomain.com interval: 30s
# Optional settings timeout: 10s
- GLITCHTIP_MAX_EVENT_LIFE_DAYS=90 retries: 3
- UWSGI_WORKERS=2 start_period: 30s
- CELERY_WORKER_CONCURRENCY=2
# Uncomment if you've donated
# - I_PAID_FOR_GLITCHTIP=true
worker: worker:
image: glitchtip/glitchtip:latest image: glitchtip/glitchtip:latest
restart: unless-stopped command: ./bin/run-celery-with-beat.sh
depends_on: depends_on: *default-depends_on
- postgres environment: *default-environment
- redis
environment:
- SECRET_KEY=your_random_secret_key_here
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
- REDIS_URL=redis://redis:6379/0
- C_FORCE_ROOT=true
command: celery -A glitchtip worker -l INFO
postgres:
image: postgres:13
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:6
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- redis_data:/data - uploads:/code/uploads
migrate:
image: glitchtip/glitchtip:latest
depends_on: *default-depends_on
command: ./bin/run-migrate.sh
environment: *default-environment
restart: "no"
volumes: volumes:
postgres_data: pg-data:
redis_data: redis-data:
uploads: