@@ -12,24 +12,28 @@ services:
12
12
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
13
13
- POSTGRES_DB=${POSTGRESQL_DATABASE:-glitchtip}
14
14
volumes :
15
- - pg -data:/var/lib/postgresql/data
15
+ - glitchtip-postgres -data:/var/lib/postgresql/data
16
16
healthcheck :
17
17
test : ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
18
18
interval : 5s
19
19
timeout : 20s
20
20
retries : 10
21
+
21
22
redis :
22
23
image : redis
23
24
healthcheck :
24
25
test : ["CMD", "redis-cli", "ping"]
25
26
interval : 5s
26
27
timeout : 20s
27
28
retries : 10
29
+
28
30
web :
29
31
image : glitchtip/glitchtip
30
32
depends_on :
31
- - postgres
32
- - redis
33
+ postgres :
34
+ condition : service_healthy
35
+ redis :
36
+ condition : service_healthy
33
37
environment :
34
38
- SERVICE_FQDN_GLITCHTIP_8080
35
39
- DATABASE_URL=postgres://$SERVICE_USER_POSTGRESQL:$SERVICE_PASSWORD_POSTGRESQL@postgres:5432/${POSTGRESQL_DATABASE:-glitchtip}
@@ -46,12 +50,15 @@ services:
46
50
interval : 5s
47
51
timeout : 20s
48
52
retries : 10
53
+
49
54
worker :
50
55
image : glitchtip/glitchtip
51
56
command : ./bin/run-celery-with-beat.sh
52
57
depends_on :
53
- - postgres
54
- - redis
58
+ postgres :
59
+ condition : service_healthy
60
+ redis :
61
+ condition : service_healthy
55
62
environment :
56
63
- DATABASE_URL=postgres://$SERVICE_USER_POSTGRESQL:$SERVICE_PASSWORD_POSTGRESQL@postgres:5432/${POSTGRESQL_DATABASE:-glitchtip}
57
64
- SECRET_KEY=$SERVICE_BASE64_64_ENCRYPTION
@@ -67,12 +74,15 @@ services:
67
74
interval : 5s
68
75
timeout : 20s
69
76
retries : 10
77
+
70
78
migrate :
71
79
image : glitchtip/glitchtip
72
80
restart : " no"
73
81
depends_on :
74
- - postgres
75
- - redis
82
+ postgres :
83
+ condition : service_healthy
84
+ redis :
85
+ condition : service_healthy
76
86
command : " ./manage.py migrate"
77
87
environment :
78
88
- DATABASE_URL=postgres://$SERVICE_USER_POSTGRESQL:$SERVICE_PASSWORD_POSTGRESQL@postgres:5432/${POSTGRESQL_DATABASE:-glitchtip}
0 commit comments