2020-03-18 20:31:31 +00:00
|
|
|
services:
|
|
|
|
db:
|
2021-11-08 10:41:35 +00:00
|
|
|
# We use a mariadb image which supports both amd64 & arm64 architecture
|
|
|
|
image: mariadb:10.6.4-focal
|
|
|
|
# If you really want to use MySQL, uncomment the following line
|
|
|
|
#image: mysql:8.0.27
|
2020-03-18 20:31:31 +00:00
|
|
|
command: '--default-authentication-plugin=mysql_native_password'
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/mysql
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=somewordpress
|
|
|
|
- MYSQL_DATABASE=wordpress
|
|
|
|
- MYSQL_USER=wordpress
|
|
|
|
- MYSQL_PASSWORD=wordpress
|
2021-04-30 20:29:16 +00:00
|
|
|
expose:
|
|
|
|
- 3306
|
|
|
|
- 33060
|
2020-03-18 20:31:31 +00:00
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|