Include full contents of all nested repositories
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
109
letsbe-ansible-runner/stacks/glitchtip/docker-compose.yml
Normal file
109
letsbe-ansible-runner/stacks/glitchtip/docker-compose.yml
Normal file
@@ -0,0 +1,109 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
container_name: {{ customer }}-glitchtip-postgres
|
||||
image: postgres:15
|
||||
ports:
|
||||
- "127.0.0.1:3046:5432"
|
||||
environment:
|
||||
#POSTGRES_HOST_AUTH_METHOD: "trust" # Consider removing this and setting a password
|
||||
POSTGRES_PASSWORD: '{{ glitchtip_database_password }}'
|
||||
restart: always
|
||||
volumes:
|
||||
- {{ customer }}-glitchtip-postgres:/var/lib/postgresql/data
|
||||
- {{ customer }}-glitchtip-backups:/tmp/backups
|
||||
networks:
|
||||
{{ customer }}-glitchtip:
|
||||
ipv4_address: 172.20.4.2
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
container_name: {{ customer }}-glitchtip_redis
|
||||
restart: always
|
||||
networks:
|
||||
{{ customer }}-glitchtip:
|
||||
ipv4_address: 172.20.4.3
|
||||
|
||||
web:
|
||||
container_name: {{ customer }}-glitchtip-web
|
||||
image: glitchtip/glitchtip
|
||||
labels:
|
||||
- "diun.enable=true"
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
ports:
|
||||
- "127.0.0.1:3017:8000"
|
||||
environment:
|
||||
DATABASE_URL: 'postgres://postgres:{{ glitchtip_database_password }}@{{ customer }}-glitchtip-postgres:5432/postgres'
|
||||
SECRET_KEY: '{{ glitchtip_secret_key }}' # best to run openssl rand -hex 32
|
||||
PORT: 8000
|
||||
#EMAIL_URL: 'consolemail://email:password@smtp-url:port' # Example smtp://email:password@smtp_url:port https://glitchtip.com/documentation/install#configuration
|
||||
GLITCHTIP_DOMAIN: 'https://{{ domain_glitchtip }}' # Change this to your domain
|
||||
DEFAULT_FROM_EMAIL: 'no-reply@{{ domain }}' # Change this to your email
|
||||
#CELERY_WORKER_AUTOSCALE: "1,2" # Scale between 1 and 3 to prevent excessive memory usage. Change it or remove to set it to the number of cpu cores.
|
||||
#CELERY_WORKER_MAX_TASKS_PER_CHILD: "10000"
|
||||
restart: always
|
||||
volumes:
|
||||
- {{ customer }}-glitchtip-uploads:/code/uploads
|
||||
- {{ customer }}-glitchtip-backups:/tmp/backups
|
||||
networks:
|
||||
{{ customer }}-glitchtip:
|
||||
ipv4_address: 172.20.4.4
|
||||
|
||||
worker:
|
||||
container_name: {{ customer }}-glitchtip-worker
|
||||
image: glitchtip/glitchtip
|
||||
command: ./bin/run-celery-with-beat.sh
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
environment:
|
||||
DATABASE_URL: 'postgres://postgres:{{ glitchtip_database_password }}@{{ customer }}-glitchtip-postgres:5432/postgres'
|
||||
SECRET_KEY: '{{ glitchtip_secret_key }}' # best to run openssl rand -hex 32
|
||||
PORT: 8000
|
||||
#EMAIL_URL: 'consolemail://email:password@smtp-url:port' # Example smtp://email:password@smtp_url:port https://glitchtip.com/documentation/install#configuration
|
||||
GLITCHTIP_DOMAIN: 'https://{{ domain_glitchtip }}' # Change this to your domain
|
||||
DEFAULT_FROM_EMAIL: 'no-reply@{{ domain }}' # Change this to your email
|
||||
#CELERY_WORKER_AUTOSCALE: "1,2" # Scale between 1 and 3 to prevent excessive memory usage. Change it or remove to set it to the number of cpu cores.
|
||||
#CELERY_WORKER_MAX_TASKS_PER_CHILD: "10000"
|
||||
restart: always
|
||||
volumes:
|
||||
- {{ customer }}-glitchtip-uploads:/code/uploads
|
||||
networks:
|
||||
{{ customer }}-glitchtip:
|
||||
ipv4_address: 172.20.4.5
|
||||
|
||||
migrate:
|
||||
container_name: {{ customer }}-glitchtip-migrate
|
||||
image: glitchtip/glitchtip
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
command: "./manage.py migrate"
|
||||
environment:
|
||||
DATABASE_URL: 'postgres://postgres:{{ glitchtip_database_password }}@{{ customer }}-glitchtip-postgres:5432/postgres'
|
||||
SECRET_KEY: '{{ glitchtip_secret_key }}' # best to run openssl rand -hex 32
|
||||
PORT: 8000
|
||||
#EMAIL_URL: 'consolemail://email:password@smtp-url:port' # Example smtp://email:password@smtp_url:port https://glitchtip.com/documentation/install#configuration
|
||||
GLITCHTIP_DOMAIN: 'https://{{ domain_glitchtip }}' # Change this to your domain
|
||||
DEFAULT_FROM_EMAIL: 'no-reply@{{ domain }}' # Change this to your email
|
||||
#CELERY_WORKER_AUTOSCALE: "1,2" # Scale between 1 and 3 to prevent excessive memory usage. Change it or remove to set it to the number of cpu cores.
|
||||
#CELERY_WORKER_MAX_TASKS_PER_CHILD: "10000"
|
||||
networks:
|
||||
{{ customer }}-glitchtip:
|
||||
ipv4_address: 172.20.4.6
|
||||
|
||||
networks:
|
||||
{{ customer }}-glitchtip:
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 172.20.4.0/28
|
||||
gateway: 172.20.4.1
|
||||
|
||||
volumes:
|
||||
{{ customer }}-glitchtip-postgres:
|
||||
{{ customer }}-glitchtip-uploads:
|
||||
{{ customer }}-glitchtip-backups:
|
||||
Reference in New Issue
Block a user