docker-compose.yml 648 B

12345678910111213141516171819202122232425262728
  1. version: '3.1'
  2. services:
  3. db:
  4. image: mysql
  5. command: --default-authentication-plugin=mysql_native_password
  6. restart: always
  7. volumes:
  8. - /data/mysql:/var/lib/mysql
  9. environment:
  10. MYSQL_DATABASE: wordpress
  11. MYSQL_ROOT_PASSWORD: WordPress@2021
  12. adminer:
  13. image: adminer
  14. restart: always
  15. ports:
  16. - 10086:8080
  17. wordpress:
  18. image: hongwenjun/nginx-php
  19. container_name: wordpress
  20. restart: always
  21. volumes:
  22. - /data/www/wordpress:/var/www/html
  23. ports:
  24. - 80:80
  25. - 443:443