-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
151 lines (140 loc) · 4.39 KB
/
docker-compose.yml
File metadata and controls
151 lines (140 loc) · 4.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
x-environment: &default-environment
CACHE_URL: ${CACHE_URL:-redis://${REDIS_PASSWORD:+:${REDIS_PASSWORD}@}glitchtip-valkey:6379/0}
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://${REDIS_PASSWORD:+:${REDIS_PASSWORD}@}glitchtip-valkey:6379/0}
CELERY_WORKER_AUTOSCALE: 1,5
CELERY_WORKER_CONCURRENCY: ${CELERY_WORKER_CONCURRENCY:-2}
CORS_ALLOWED_ORIGINS: ${GLITCHTIP_DOMAIN:-http://localhost}
CSRF_TRUSTED_ORIGINS: ${GLITCHTIP_DOMAIN:-http://localhost}
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-postgres}@glitchtip-postgres:5432/postgres
DEFAULT_FROM_EMAIL: ${DEFAULT_FROM_EMAIL:-email@example.com} # Change this to your email
EMAIL_URL: ${EMAIL_URL:-consolemail://} # Example smtp://email:password@smtp_url:port
ENABLE_ORGANIZATION_CREATION: ${ENABLE_ORGANIZATION_CREATION:-False}
ENABLE_USER_REGISTRATION: ${ENABLE_USER_REGISTRATION:-False}
GLITCHTIP_DOMAIN: ${GLITCHTIP_DOMAIN:-http://localhost} # Change this to your domain
GLITCHTIP_MAX_EVENT_LIFE_DAYS: ${GLITCHTIP_MAX_EVENT_LIFE_DAYS:-14}
GLITCHTIP_MAX_FILE_LIFE_DAYS: ${GLITCHTIP_MAX_FILE_LIFE_DAYS:-$${GLITCHTIP_MAX_EVENT_LIFE_DAYS:-14}}
GLITCHTIP_MAX_TRANSACTION_EVENT_LIFE_DAYS: ${GLITCHTIP_MAX_TRANSACTION_EVENT_LIFE_DAYS:-${GLITCHTIP_MAX_EVENT_LIFE_DAYS:-14}}
PORT: 8000 # If changing, change the web service port too
REDIS_URL: redis://${REDIS_PASSWORD:+:${REDIS_PASSWORD}@}glitchtip-valkey:6379/0
SECRET_KEY: ${SECRET_KEY:-change_me_to_something_random} # best to run openssl rand -hex 32
UWSGI_CHEAPER: ${UWSGI_CHEAPER:-2}
UWSGI_CHEAPER_INITIAL: ${UWSGI_CHEAPER_INITIAL:-2}
UWSGI_WORKERS: ${UWSGI_WORKERS:-4}
x-depends_on: &default-depends_on
- glitchtip-postgres
- glitchtip-valkey
x-healthcheck-postgres: &postgres-healthcheck
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
x-logging: &json-logging
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
x-glitchtip-base: &glitchtip-base
image: glitchtip/glitchtip:v4.2.5
depends_on: *default-depends_on
environment: *default-environment
restart: unless-stopped
volumes:
- glitchtip-uploads:/code/uploads
<<: *json-logging
services:
glitchtip-postgres:
image: postgres:17
container_name: glitchtip-postgres
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: postgres
POSTGRES_USER: postgres
restart: unless-stopped
volumes:
- glitchtip-postgres-data:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 1G
glitchtip-valkey:
image: valkey/valkey:latest
container_name: glitchtip-valkey
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
deploy:
resources:
limits:
memory: 1G
volumes:
- glitchtip-redis-data:/data
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
glitchtip-web:
<<: *glitchtip-base
container_name: glitchtip-web
deploy:
resources:
limits:
memory: 1G
glitchtip-worker:
<<: *glitchtip-base
container_name: glitchtip-worker
command: ./bin/run-celery-with-beat.sh
deploy:
resources:
limits:
memory: 1G
glitchtip-nginx:
image: nginx:alpine
container_name: glitchtip-nginx
restart: unless-stopped
ports:
- "${EXTERNAL_PORT:-80}:80"
- "${EXTERNAL_SSL_PORT:-443}:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- glitchtip-web
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
glitchtip-migrate:
<<: *glitchtip-base
container_name: glitchtip-migrate
command: ./bin/run-migrate.sh
restart: "no"
depends_on:
glitchtip-postgres:
condition: service_healthy
volumes:
glitchtip-postgres-data:
name: glitchtip-postgres-data
glitchtip-uploads:
name: glitchtip-uploads
glitchtip-redis-data:
name: glitchtip-redis-data