Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 13 additions & 21 deletions drupal-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace: drupal

stack-db:
defines: runnable
inherits: postgresql/db
inherits: postgresql/db-v17
metadata:
name: Drupal Stack PostgreSQL
description: |
Expand Down Expand Up @@ -35,10 +35,6 @@ stack-db:
env: POSTGRES_PASSWORD
value: <- $stack-db-password
description: Sensitive PostgreSQL password shared with Drupal. Production deployments should set secret("drupal-db-password").
containers:
postgres:
paths:
- <- `${volume-path}/drupal-stack-postgres:/var/lib/postgresql/data`
files:
drupal-postgres-init:
container: postgres
Expand Down Expand Up @@ -123,17 +119,17 @@ stack-app:
type: string
value: <- $stack-public-url
description: Public URL expected for Drupal when routed through Monk ingress.
files-volume-name:
type: string
value: drupal-stack-files
description: Monk volume subdirectory used for production Drupal files.
containers:
drupal:
image: drupal
image-tag: <- $drupal-image-tag
restart: unless-stopped
paths:
- <- `${volume-path}/${files-volume-name}:/opt/drupal/web/sites/default/files`
mounted-volumes:
files:
path: /opt/drupal/web/sites/default/files
volumes:
files:
kind: local
services:
http:
container: drupal
Expand Down Expand Up @@ -238,10 +234,6 @@ stack-local-db:
env: POSTGRES_PASSWORD
value: <- $stack-local-db-password
description: Sensitive generated PostgreSQL password for local verification.
containers:
postgres:
paths:
- <- `${volume-path}/drupal-stack-local-postgres:/var/lib/postgresql/data`
checks:
readiness:
code: tcp-check-service("drupal/stack-local-db", "postgres")
Expand Down Expand Up @@ -304,10 +296,6 @@ stack-local-app:
type: string
value: http://localhost:18081
description: Local URL used for external HTTP verification.
files-volume-name:
type: string
value: drupal-stack-local-files
description: Monk volume subdirectory used for local Drupal files.
drupal-image-tag:
type: string
value: 11-apache
Expand All @@ -325,8 +313,12 @@ stack-local-app:
image: drupal
image-tag: <- $drupal-image-tag
restart: unless-stopped
paths:
- <- `${volume-path}/${files-volume-name}:/opt/drupal/web/sites/default/files`
mounted-volumes:
files:
path: /opt/drupal/web/sites/default/files
volumes:
files:
kind: local
services:
http:
container: drupal
Expand Down
12 changes: 6 additions & 6 deletions drupal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ base:
type: string
value: https://drupal.example.com
description: Public base URL expected for the Drupal site when exposed through ingress.
files-volume-name:
type: string
value: drupal-files
description: Monk volume subdirectory used for Drupal uploaded files and generated assets.
containers:
drupal:
image: drupal
image-tag: <- $drupal-image-tag
restart: unless-stopped
paths:
- <- `${volume-path}/${files-volume-name}:/opt/drupal/web/sites/default/files`
mounted-volumes:
files:
path: /opt/drupal/web/sites/default/files
volumes:
files:
kind: local
files:
settings-php:
container: drupal
Expand Down