mirror of
git://develop.git.wordpress.org/
synced 2025-04-27 07:32:32 +02:00
This switches to mounting the current directory instead of the one above the working directory in the mounted volume, which can include many directories of unrelated projects. Props johnbillion. Fixes #62899. git-svn-id: https://develop.svn.wordpress.org/trunk@60081 602fd350-edb4-49c9-b593-d223f7449a82
30 lines
561 B
YAML
30 lines
561 B
YAML
version: '3.1'
|
|
|
|
services:
|
|
app:
|
|
image: wordpress
|
|
restart: always
|
|
ports:
|
|
- 8080:80
|
|
environment:
|
|
WORDPRESS_DB_HOST: db
|
|
WORDPRESS_DB_USER: exampleuser
|
|
WORDPRESS_DB_PASSWORD: examplepass
|
|
WORDPRESS_DB_NAME: exampledb
|
|
volumes:
|
|
- ..:/workspace:cached
|
|
|
|
db:
|
|
image: mariadb
|
|
restart: unless-stopped
|
|
environment:
|
|
MYSQL_DATABASE: exampledb
|
|
MYSQL_USER: exampleuser
|
|
MYSQL_PASSWORD: examplepass
|
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
|
|
volumes:
|
|
db:
|