28 lines
543 B
YAML
28 lines
543 B
YAML
version: '3.1'
|
|
services:
|
|
wordpress:
|
|
image: wordpress
|
|
ports:
|
|
- 8080:80
|
|
environment:
|
|
WORDPRESS_DB_HOST: db
|
|
WORDPRESS_DB_USER: exampleuser
|
|
WORDPRESS_DB_PASSWORD: examplepass
|
|
WORDPRESS_DB_NAME: exampledb
|
|
volumes:
|
|
- content:/var/www/html/wp-content
|
|
|
|
db:
|
|
image: mysql:5.7
|
|
environment:
|
|
MYSQL_DATABASE: exampledb
|
|
MYSQL_USER: exampleuser
|
|
MYSQL_PASSWORD: examplepass
|
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
|
|
volumes:
|
|
content:
|
|
db:
|