GlitchTip Setup via Docker on Linux Based Server

Setup a reverse proxy on cloudpanel : ( port i used : 8081 ) ( this port will be adjusted in docker file below)

cd..
mkdir glitchtip
cd glitchtip
nano docker-compose.yml
x-environment: &default-environment
  DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
  VALKEY_URL: redis://valkey:6379
  SECRET_KEY: $(openssl rand -hex 32) # This will generate a unique key
  GLITCHTIP_DOMAIN: https://glitchtip.quriousclick.es
  DEFAULT_FROM_EMAIL: admin@quriousclick.es
  # Set your email settings here later to receive alerts

services:
  postgres:
    image: postgres:16 # Using 16 for stability; 18 is very new/experimental
    environment:
      POSTGRES_HOST_AUTH_METHOD: "trust"
    restart: unless-stopped
    volumes:
      - ./pg-data:/var/lib/postgresql/data # Local path to keep it intact

  valkey:
    image: valkey/valkey:8
    restart: unless-stopped

  web:
    image: glitchtip/glitchtip:6
    depends_on:
      - postgres
      - valkey
    ports:
      - "127.0.0.1:8081:8000" # Crucial: Only allows CloudPanel/Nginx access
    environment: *default-environment
    restart: unless-stopped
    volumes:
      - uploads:/code/uploads

  worker:
    image: glitchtip/glitchtip:6
    command: ./bin/run-worker.sh
    depends_on:
      - postgres
      - valkey
    environment: *default-environment
    restart: unless-stopped
    volumes:
      - uploads:/code/uploads

  migrate:
    image: glitchtip/glitchtip:6
    depends_on:
      - postgres
      - valkey
    command: ./bin/run-migrate.sh
    environment: *default-environment

volumes:
  uploads:
sudo docker compose up -d
sudo docker compose exec web ./manage.py createsuperuser

Create a new user via terminal.
install the certifications

If there are any new changes - run

docker-compose up -d

Did you find this article useful?