fix: drupal

This commit is contained in:
Andras Bacsai 2024-07-15 13:59:33 +02:00
parent eb3a4ca157
commit 7d64df60cd
2 changed files with 19 additions and 5 deletions

View File

@ -5,7 +5,7 @@
services: services:
drupal: drupal:
image: 'drupal:10-apache' image: "drupal:10-apache"
environment: environment:
- SERVICE_FQDN_DRUPAL - SERVICE_FQDN_DRUPAL
- DB_HOST=postgres - DB_HOST=postgres
@ -31,9 +31,23 @@ services:
is_directory: true is_directory: true
depends_on: depends_on:
- postgres - postgres
restart: always healthcheck:
test:
- CMD-SHELL
- "curl -f http://localhost:80 || exit 1"
interval: 30s
timeout: 10s
retries: 5
postgres: postgres:
image: 'postgres:16' image: "postgres:16"
environment: environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
restart: always healthcheck:
test:
- CMD-SHELL
- "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
interval: 5s
timeout: 10s
retries: 20

File diff suppressed because one or more lines are too long