This repository has been archived on 2025-09-29. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
docker-examples/docker-compose.yaml

30 lines
627 B
YAML

services:
web:
image: caddy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- .:/var/www/html
ports:
- "${DOCKER_WEB_PORT:-127.0.0.1:80}:80"
environment:
SERVER_NAME: "${SERVER_NAME:-:80}"
php-fpm:
image: "ghcr.io/opdavies/docker-drupal-example-php-fpm:${DOCKER_TAG:-latest}"
build:
context: .
volumes:
- .:/var/www/html
mysql:
image: mariadb:10
volumes:
- db-data:/var/lib/mysql
environment:
MYSQL_DATABASE: drupal
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
MYSQL_PASSWORD: drupal
MYSQL_USER: drupal
volumes:
db-data: {}