2024-01-22 11:00:44 +00:00
|
|
|
# documentation: https://glitchtip.com
|
|
|
|
# slogan: GlitchTip is a self-hosted, open-source error tracking system.
|
|
|
|
# tags: error, tracking, open-source, self-hosted, sentry
|
2024-02-20 14:07:12 +00:00
|
|
|
# logo: svgs/glitchtip.png
|
2024-03-12 14:09:24 +00:00
|
|
|
# port: 8080
|
2024-01-22 11:00:44 +00:00
|
|
|
|
2024-01-21 13:30:03 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:16-alpine
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=${SERVICE_USER_POSTGRESQL}
|
|
|
|
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
|
|
|
|
- POSTGRES_DB=${POSTGRESQL_DATABASE:-glitchtip}
|
|
|
|
volumes:
|
|
|
|
- pg-data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
web:
|
|
|
|
image: glitchtip/glitchtip
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
environment:
|
2024-03-12 14:09:24 +00:00
|
|
|
- SERVICE_FQDN_GLITCHTIP_8080
|
2024-01-21 13:30:03 +00:00
|
|
|
- DATABASE_URL=postgres://$SERVICE_USER_POSTGRESQL:$SERVICE_PASSWORD_POSTGRESQL@postgres:5432/${POSTGRESQL_DATABASE:-glitchtip}
|
|
|
|
- SECRET_KEY=$SERVICE_BASE64_64_ENCRYPTION
|
|
|
|
- EMAIL_URL=${EMAIL_URL:-consolemail://}
|
|
|
|
- GLITCHTIP_DOMAIN=${SERVICE_FQDN_GLITCHTIP}
|
|
|
|
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL:-test@example.com}
|
|
|
|
- CELERY_WORKER_AUTOSCALE=${CELERY_WORKER_AUTOSCALE:-1,3}
|
|
|
|
- CELERY_WORKER_MAX_TASKS_PER_CHILD=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-10000}
|
|
|
|
volumes:
|
|
|
|
- uploads:/code/uploads
|
|
|
|
worker:
|
|
|
|
image: glitchtip/glitchtip
|
|
|
|
command: ./bin/run-celery-with-beat.sh
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgres://$SERVICE_USER_POSTGRESQL:$SERVICE_PASSWORD_POSTGRESQL@postgres:5432/${POSTGRESQL_DATABASE:-glitchtip}
|
|
|
|
- SECRET_KEY=$SERVICE_BASE64_64_ENCRYPTION
|
|
|
|
- EMAIL_URL=${EMAIL_URL:-consolemail://}
|
|
|
|
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL:-test@example.com}
|
|
|
|
- CELERY_WORKER_AUTOSCALE=${CELERY_WORKER_AUTOSCALE:-1,3}
|
|
|
|
- CELERY_WORKER_MAX_TASKS_PER_CHILD=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-10000}
|
|
|
|
volumes:
|
|
|
|
- uploads:/code/uploads
|
|
|
|
migrate:
|
|
|
|
image: glitchtip/glitchtip
|
|
|
|
restart: "no"
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
command: "./manage.py migrate"
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgres://$SERVICE_USER_POSTGRESQL:$SERVICE_PASSWORD_POSTGRESQL@postgres:5432/${POSTGRESQL_DATABASE:-glitchtip}
|
|
|
|
- SECRET_KEY=$SERVICE_BASE64_64_ENCRYPTION
|
|
|
|
- EMAIL_URL=${EMAIL_URL:-consolemail://}
|
|
|
|
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL:-test@example.com}
|
|
|
|
- CELERY_WORKER_AUTOSCALE=${CELERY_WORKER_AUTOSCALE:-1,3}
|
|
|
|
- CELERY_WORKER_MAX_TASKS_PER_CHILD=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-10000}
|