File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
services :
7
7
drupal :
8
- image : ' drupal:10-apache'
8
+ image : " drupal:10-apache"
9
9
environment :
10
10
- SERVICE_FQDN_DRUPAL
11
11
- DB_HOST=postgres
@@ -31,9 +31,23 @@ services:
31
31
is_directory : true
32
32
depends_on :
33
33
- postgres
34
- restart : always
34
+ healthcheck :
35
+ test :
36
+ - CMD-SHELL
37
+ - " curl -f http://localhost:80 || exit 1"
38
+ interval : 30s
39
+ timeout : 10s
40
+ retries : 5
35
41
postgres :
36
- image : ' postgres:16'
42
+ image : " postgres:16"
37
43
environment :
44
+ - POSTGRES_DB=postgres
45
+ - POSTGRES_USER=postgres
38
46
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
39
- restart : always
47
+ healthcheck :
48
+ test :
49
+ - CMD-SHELL
50
+ - " pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
51
+ interval : 5s
52
+ timeout : 10s
53
+ retries : 20
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments