Advertisement
Guest User

docker-compose file

a guest
Aug 22nd, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. version: '2'
  2. services:
  3. wordpress:
  4. image: wordpress:4.8.0-php5.6-apache # https://hub.docker.com/_/wordpress/
  5. ports:
  6. - 80:80 # change ip if required
  7. volumes:
  8. - ./config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
  9. - ./wp-app:/var/www/html # Full wordpress project
  10. #- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
  11. - ../all-in-one-wp-migration-unlimited-extension/:/var/www/html/wp-content/plugins/all-in-one-wp-migration-unlimited-extension # Plugin development
  12. #- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development
  13. - ../propertyentourage.com.au-20180718-030758-200.wpress:/var/www/propertyentourage.com.au-20180718-030758-200.wpress
  14. environment:
  15. WORDPRESS_DB_HOST: db
  16. WORDPRESS_DB_NAME: wordpress
  17. WORDPRESS_DB_USER: root
  18. WORDPRESS_DB_PASSWORD: password
  19. depends_on:
  20. - db
  21. networks:
  22. - wordpress-network
  23. db:
  24. image: mysql:5.6 # https://hub.docker.com/_/mysql/ - or mariadb https://hub.docker.com/_/mariadb
  25. ports:
  26. - 127.0.0.1:3306:3306 # change ip if required
  27. command: [
  28. '--default_authentication_plugin=mysql_native_password',
  29. '--character-set-server=utf8mb4',
  30. '--collation-server=utf8mb4_unicode_ci'
  31. ]
  32. volumes:
  33. - ./wp-data:/docker-entrypoint-initdb.d
  34. environment:
  35. MYSQL_DATABASE: wordpress
  36. MYSQL_ROOT_PASSWORD: password
  37. networks:
  38. - wordpress-network
  39. networks:
  40. wordpress-network:
  41. driver: bridge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement