You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
566 B

3 years ago
  1. version: '3.1'
  2. services:
  3. wordpress:
  4. image: wordpress
  5. restart: always
  6. ports:
  7. - 8080:80
  8. environment:
  9. WORDPRESS_DB_HOST: db
  10. WORDPRESS_DB_USER: admin
  11. WORDPRESS_DB_PASSWORD: examplePass
  12. WORDPRESS_DB_NAME: exampledb
  13. volumes:
  14. - wordpress:/var/www/html
  15. db:
  16. image: mysql:5.7
  17. restart: always
  18. environment:
  19. MYSQL_DATABASE: exampledb
  20. MYSQL_USER: admin
  21. MYSQL_PASSWORD: examplePass
  22. MYSQL_RANDOM_ROOT_PASSWORD: '1'
  23. volumes:
  24. - db:/var/lib/mysql
  25. volumes:
  26. wordpress:
  27. db: