-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.49 KB
/
docker-compose.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
version: "3.8"
services:
postgres:
image: postgres:13
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
restart: unless-stopped
volumes:
- ./data/postgres:/var/lib/postgresql/data
redis:
image: redis
restart: unless-stopped
web:
image: glitchtip/glitchtip
depends_on:
- postgres
- redis
ports:
- 80:8000
environment:
- DATABASE_URL=${DATABASE_URL}
- SECRET_KEY=${SECRET_KEY}
- PORT=${PORT}
- EMAIL_URL=${EMAIL_URL}
- GLITCHTIP_DOMAIN=${GLITCHTIP_DOMAIN}
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL}
restart: unless-stopped
worker:
image: glitchtip/glitchtip
command: ./bin/run-celery-with-beat.sh
depends_on:
- postgres
- redis
environment:
- DATABASE_URL=${DATABASE_URL}
- SECRET_KEY=${SECRET_KEY}
- PORT=${PORT}
- EMAIL_URL=${EMAIL_URL}
- GLITCHTIP_DOMAIN=${GLITCHTIP_DOMAIN}
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL}
restart: unless-stopped
migrate:
image: glitchtip/glitchtip
depends_on:
- postgres
- redis
command: "./manage.py migrate"
environment:
- DATABASE_URL=${DATABASE_URL}
- SECRET_KEY=${SECRET_KEY}
- PORT=${PORT}
- EMAIL_URL=${EMAIL_URL}
- GLITCHTIP_DOMAIN=${GLITCHTIP_DOMAIN}
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL}