|
@@ -1,31 +1,28 @@
|
|
|
version: '3.1'
|
|
|
services:
|
|
|
- wordpress:
|
|
|
- image: hongwenjun/nginx-php
|
|
|
- container_name: wordpress
|
|
|
- restart: always
|
|
|
- volumes:
|
|
|
- - /data/www/wordpress:/var/www/html
|
|
|
- ports:
|
|
|
- - 80:80
|
|
|
- networks:
|
|
|
- - frontend
|
|
|
|
|
|
mysql:
|
|
|
image: mysql
|
|
|
+ command: --default-authentication-plugin=mysql_native_password
|
|
|
restart: always
|
|
|
volumes:
|
|
|
- /data/mysql:/var/lib/mysql
|
|
|
- ports:
|
|
|
- - 3306:3306
|
|
|
environment:
|
|
|
- TZ: 'Asia/Shanghai'
|
|
|
MYSQL_DATABASE: wordpress
|
|
|
MYSQL_ROOT_PASSWORD: WordPress@2021
|
|
|
- command: ['mysqld', '--character-set-server=utf8']
|
|
|
- networks:
|
|
|
- - backend
|
|
|
|
|
|
-networks:
|
|
|
- frontend:
|
|
|
- backend:
|
|
|
+ adminer:
|
|
|
+ image: adminer
|
|
|
+ restart: always
|
|
|
+ ports:
|
|
|
+ - 10086:8080
|
|
|
+
|
|
|
+ wordpress:
|
|
|
+ image: hongwenjun/nginx-php
|
|
|
+ container_name: wordpress
|
|
|
+ restart: always
|
|
|
+ volumes:
|
|
|
+ - /data/www/wordpress:/var/www/html
|
|
|
+ ports:
|
|
|
+ - 80:80
|
|
|
+ - 443:443
|