4cd956ee1c
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
29 lines
634 B
YAML
29 lines
634 B
YAML
version: '3.7'
|
|
services:
|
|
db:
|
|
image: mysql:8.0.19
|
|
command: '--default-authentication-plugin=mysql_native_password'
|
|
restart: always
|
|
volumes:
|
|
- db_data:/var/lib/mysql
|
|
restart: always
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=somewordpress
|
|
- MYSQL_DATABASE=wordpress
|
|
- MYSQL_USER=wordpress
|
|
- MYSQL_PASSWORD=wordpress
|
|
wordpress:
|
|
image: wordpress:latest
|
|
ports:
|
|
- 80:80
|
|
restart: always
|
|
environment:
|
|
- WORDPRESS_DB_HOST=db
|
|
- WORDPRESS_DB_USER=wordpress
|
|
- WORDPRESS_DB_PASSWORD=wordpress
|
|
- WORDPRESS_DB_NAME=wordpress
|
|
volumes:
|
|
db_data:
|
|
|
|
|
|
|