-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.glitchtip.yml
More file actions
59 lines (52 loc) · 1.31 KB
/
compose.glitchtip.yml
File metadata and controls
59 lines (52 loc) · 1.31 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
x-environment: &env
DATABASE_URL: postgresql://glitchtip:${POSTGRES_PASSWORD}@postgres:5432/glitchtip
SECRET_KEY: ${SECRET_KEY}
GLITCHTIP_DOMAIN: ${GLITCHTIP_DOMAIN}
DEFAULT_FROM_EMAIL: ${DEFAULT_FROM_EMAIL}
EMAIL_URL: ${EMAIL_URL}
CELERY_WORKER_AUTOSCALE: "1,3"
CELERY_WORKER_MAX_TASKS_PER_CHILD: "10000"
x-depends: &depends
- postgres
- redis
services:
postgres:
image: postgres:16-alpine
container_name: glitchtip-db
environment:
POSTGRES_DB: glitchtip
POSTGRES_USER: glitchtip
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
mem_limit: 256m
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: glitchtip-redis
mem_limit: 64m
restart: unless-stopped
web:
image: glitchtip/glitchtip
container_name: glitchtip-web
depends_on: *depends
ports:
- "127.0.0.1:${PORT:-3849}:8000"
environment: *env
volumes:
- uploads:/code/uploads
mem_limit: 256m
restart: unless-stopped
worker:
image: glitchtip/glitchtip
container_name: glitchtip-worker
command: ./bin/run-celery-with-beat.sh
depends_on: *depends
environment: *env
volumes:
- uploads:/code/uploads
mem_limit: 256m
restart: unless-stopped
volumes:
pgdata:
uploads: