platform-deployments/docker/services/glitchtip/docker-compose.yml
Quinn Ftw 49f7a59584 chore(glitchtip): 🔧 Update Docker Compose configuration for new service dependencies
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-02-18 15:17:13 -08:00

73 lines
2.3 KiB
YAML

# =============================================================================
# GLITCHTIP ERROR TRACKING
# =============================================================================
#
# Self-hosted, Sentry-compatible error tracking for the Lilith Platform.
# Runs on black (10.0.0.11), accessible via VPN only.
#
# Services report errors using @sentry/node and @sentry/react SDKs,
# which are already integrated in @lilith/service-nestjs-bootstrap and
# @lilith/service-react-bootstrap via the sentry.dsn config.
#
# Usage:
# docker compose up -d
# # Access UI at http://10.0.0.11:8800
# # Create org + project, get DSN, set SENTRY_DSN in services
#
# =============================================================================
services:
glitchtip-postgres:
image: postgres:16-alpine
container_name: lilith-glitchtip-postgres
restart: unless-stopped
environment:
POSTGRES_DB: glitchtip
POSTGRES_USER: glitchtip
POSTGRES_PASSWORD: ${GLITCHTIP_DB_PASSWORD:-glitchtip_dev_password}
volumes:
- glitchtip-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U glitchtip -d glitchtip']
interval: 10s
timeout: 5s
retries: 5
networks:
- glitchtip-network
glitchtip:
image: glitchtip/glitchtip
container_name: lilith-glitchtip
restart: unless-stopped
depends_on:
glitchtip-postgres:
condition: service_healthy
ports:
- '${GLITCHTIP_PORT:-8800}:8080'
environment:
DATABASE_URL: postgres://glitchtip:${GLITCHTIP_DB_PASSWORD:-glitchtip_dev_password}@glitchtip-postgres:5432/glitchtip
SECRET_KEY: ${GLITCHTIP_SECRET_KEY}
GLITCHTIP_DOMAIN: ${GLITCHTIP_DOMAIN:-http://10.0.0.11:8800}
DEFAULT_FROM_EMAIL: noreply@atlilith.com
EMAIL_URL: smtp://${SMTP_USER}:${SMTP_PASSWORD}@${SMTP_HOST}:${SMTP_PORT}
SERVER_ROLE: all_in_one
GLITCHTIP_MAX_EVENT_LIFE_DAYS: 90
CELERY_WORKER_CONCURRENCY: 2
volumes:
- glitchtip-uploads:/code/uploads
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
networks:
- glitchtip-network
volumes:
glitchtip-postgres-data:
glitchtip-uploads:
networks:
glitchtip-network:
driver: bridge