Include glitchtip provisioning
This commit is contained in:
parent
86a81c6e52
commit
0d7666185c
6 changed files with 119 additions and 4 deletions
55
templates/glitchtip/docker-compose.j2
Normal file
55
templates/glitchtip/docker-compose.j2
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
x-environment: &default-environment
|
||||
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
|
||||
SECRET_KEY: '{{ glitchtip_secret_key }}'
|
||||
PORT: {{ glitchtip_app_port }}
|
||||
EMAIL_URL: consolemail://
|
||||
GLITCHTIP_DOMAIN: 'https://{{ glitchtip_domain }}'
|
||||
DEFAULT_FROM_EMAIL: email@example.com
|
||||
CELERY_WORKER_AUTOSCALE: "1,3"
|
||||
CSP_DEFAULT_SRC: "'self',{{ glitchtip_domain }}"
|
||||
CORS_ORIGIN_WHITELIST: https://{{ glitchtip_domain }}
|
||||
CSRF_TRUSTED_ORIGINS: https://{{ glitchtip_domain }}
|
||||
|
||||
x-depends_on: &default-depends_on
|
||||
- postgres
|
||||
- redis
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17
|
||||
environment:
|
||||
POSTGRES_HOST_AUTH_METHOD: 'trust'
|
||||
restart: always
|
||||
volumes:
|
||||
- pg-data:/var/lib/postgresql/data
|
||||
redis:
|
||||
image: valkey/valkey
|
||||
restart: always
|
||||
web:
|
||||
image: '{{ glitchtip_image_tag }}'
|
||||
depends_on: *default-depends_on
|
||||
ports:
|
||||
- '{{ glitchtip_app_port }}:7200'
|
||||
environment: *default-environment
|
||||
restart: always
|
||||
volumes:
|
||||
- uploads:/code/uploads
|
||||
worker:
|
||||
image: '{{ glitchtip_image_tag }}'
|
||||
command: ./bin/run-celery-with-beat.sh
|
||||
depends_on: *default-depends_on
|
||||
environment: *default-environment
|
||||
restart: always
|
||||
volumes:
|
||||
- uploads:/code/uploads
|
||||
migrate:
|
||||
image: '{{ glitchtip_image_tag }}'
|
||||
depends_on: *default-depends_on
|
||||
command: ./bin/run-migrate.sh
|
||||
environment: *default-environment
|
||||
|
||||
volumes:
|
||||
pg-data:
|
||||
uploads:
|
||||
|
|
@ -13,11 +13,11 @@ server {
|
|||
client_max_body_size 40M;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Ssl on;
|
||||
proxy_set_header X-Forwarded-Ssl on;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_pass http://{{ glitchtip_ip }}:{{ glitchtip_port }};
|
||||
proxy_pass http://{{ glitchtip_ip }}:{{ glitchtip_app_port }};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue