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.

29 lines
596 B

  1. version: '3.1'
  2. services:
  3. app:
  4. image: wordpress:5.4.1-php7.2-fpm
  5. restart: always
  6. ports:
  7. - 8080:80
  8. environment:
  9. WORDPRESS_DB_HOST: db
  10. WORDPRESS_DB_USER: exampleuser
  11. WORDPRESS_DB_PASSWORD: examplepass
  12. WORDPRESS_DB_NAME: exampledb
  13. volumes:
  14. - ./wordpress:/var/www/html
  15. depends_on:
  16. - db
  17. db:
  18. image: mariadb:10.5.3
  19. restart: always
  20. environment:
  21. MYSQL_DATABASE: exampledb
  22. MYSQL_USER: exampleuser
  23. MYSQL_PASSWORD: examplepass
  24. MYSQL_RANDOM_ROOT_PASSWORD: '1'
  25. volumes:
  26. - ./db:/var/lib/mysql