Skip to content

Instantly share code, notes, and snippets.

@indatawetrust
Created November 23, 2024 08:34
Show Gist options
  • Save indatawetrust/ef1eddc2dba3fce5c2bf542f558d1aef to your computer and use it in GitHub Desktop.
Save indatawetrust/ef1eddc2dba3fce5c2bf542f558d1aef to your computer and use it in GitHub Desktop.
version: "3.4"
x-environment: &default-environment
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
SECRET_KEY: your-secret-key
PORT: 8000
GLITCHTIP_DOMAIN: https://glitchtip.yourdomain.com
EMAIL_URL: smtp+tls://smtp-user:smtp-password@email-smtp.yourprovider.com:587
DEFAULT_FROM_EMAIL: glitchtip@yourdomain.com
ENABLE_OPEN_USER_REGISTRATION: "False"
x-depends_on: &default-depends_on
- postgres
- redis
services:
postgres:
image: postgres:13
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
restart: unless-stopped
volumes:
- ./postgres-data:/var/lib/postgresql/data
redis:
image: redis
restart: unless-stopped
web:
image: glitchtip/glitchtip:latest
depends_on: *default-depends_on
ports:
- "8000:8000"
environment: *default-environment
restart: unless-stopped
worker:
image: glitchtip/glitchtip:latest
command: ./bin/run-celery-with-beat.sh
depends_on: *default-depends_on
environment: *default-environment
restart: unless-stopped
migrate:
image: glitchtip/glitchtip:latest
depends_on: *default-depends_on
command: "./manage.py migrate"
environment: *default-environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment