-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
glitchtip.yml
73 lines (65 loc) · 1.88 KB
/
glitchtip.yml
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
# DOMAIN=example.com docker stack deploy -c glitchtip.yml glitchtip
x-glitchtip: &glitchtip
image: glitchtip/glitchtip:${VERSION:-v4.0}
environment:
- GLITCHTIP_DOMAIN=${SCHEME:-https}://${DOMAIN:-glitchtip.localhost}
- DATABASE_URL=postgres://glitchtip:myp@ssw0rd@postgres:5432/postgres
- EMAIL_URL=smtp://${SMTP_USER}:${SMTP_PASSWORD}@${SMTP_HOST}:${SMTP_PORT}
- DEFAULT_FROM_EMAIL=${SMTP_FROM}
volumes:
- ${VOLUME_PATH}uploads:/code/uploads
services:
web:
<<: *glitchtip
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.glitchtip-${NUMBER:-1}.rule=Host(`${DOMAIN:-glitchtip.localhost}`)
- traefik.http.routers.glitchtip-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.glitchtip-${NUMBER:-1}.service=glitchtip-${NUMBER:-1}
- traefik.http.routers.glitchtip-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.glitchtip-${NUMBER:-1}.loadbalancer.server.port=8080
networks:
- traefik
- internal
worker:
<<: *glitchtip
command: ./bin/run-celery-with-beat.sh
networks:
- internal
migrate:
<<: *glitchtip
command: ./manage.py migrate
deploy:
restart_policy:
condition: on-failure
networks:
- internal
redis:
image: redis:6-alpine
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- internal
postgres:
image: postgres:${POSTGRES_VERSION:-12-alpine}
environment:
- POSTGRES_DB=glitchtip
- POSTGRES_USER=glitchtip
- POSTGRES_PASSWORD=myp@ssw0rd
healthcheck:
test: ["CMD", "pg_isready", "-U", "glitchtip"]
volumes:
- ${VOLUME_PATH}postgres:/var/lib/postgresql/data
networks:
- internal
volumes:
uploads:
postgres:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net