Skip to content

Commit 7d64df6

Browse files
committed
fix: drupal
1 parent eb3a4ca commit 7d64df6

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

templates/compose/drupal-with-postgresql.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
services:
77
drupal:
8-
image: 'drupal:10-apache'
8+
image: "drupal:10-apache"
99
environment:
1010
- SERVICE_FQDN_DRUPAL
1111
- DB_HOST=postgres
@@ -31,9 +31,23 @@ services:
3131
is_directory: true
3232
depends_on:
3333
- 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
3541
postgres:
36-
image: 'postgres:16'
42+
image: "postgres:16"
3743
environment:
44+
- POSTGRES_DB=postgres
45+
- POSTGRES_USER=postgres
3846
- 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

templates/service-templates.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)