39 lines
892 B
YAML
39 lines
892 B
YAML
---
|
|
version: '3.1'
|
|
|
|
services:
|
|
web:
|
|
image: "thecoopcloud/nginx:1.21.4-bedrock"
|
|
working_dir: /app
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./src:/app:cached
|
|
environment:
|
|
- PHP_SERVICE=php
|
|
|
|
php:
|
|
image: "thecoopcloud/wordpress:5.8.2-php7.4-fpm-bedrock"
|
|
working_dir: /app
|
|
environment:
|
|
# Pass SSH agent socket, to avoid having to reënter your passphrase
|
|
SSH_AUTH_SOCK: "${SSH_AUTH_SOCK}"
|
|
DEV_MODE: "${DEV_MODE}"
|
|
volumes:
|
|
- ./src:/app:cached
|
|
# Use your own SSH Host Key file
|
|
- "${HOME}/.ssh/known_hosts:/root/.ssh/known_hosts:ro"
|
|
- $SSH_AUTH_SOCK:$SSH_AUTH_SOCK
|
|
db:
|
|
image: mariadb:10.4
|
|
volumes:
|
|
- "mariadb:/var/lib/mysql"
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=wordpress
|
|
- MYSQL_DATABASE=wordpress
|
|
- MYSQL_USER=wordpress
|
|
- MYSQL_PASSWORD=wordpress
|
|
|
|
volumes:
|
|
mariadb:
|