Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. # docker-compose up -d
  2. # docker-compose down
  3.  
  4. version: '3'
  5.  
  6. services:
  7. db:
  8. # mysql -u root -p --port 3357 --host=127.0.0.1
  9. image: mysql:5.7
  10. volumes:
  11. - db_data:/var/lib/mysql
  12. restart: always
  13. ports:
  14. - "3357:3306"
  15. environment:
  16. MYSQL_ROOT_PASSWORD: somewordpress
  17. MYSQL_DATABASE: wordpress
  18. MYSQL_USER: wordpress
  19. MYSQL_PASSWORD: wordpress
  20. wordpress:
  21. depends_on:
  22. - db
  23. image: wordpress:latest
  24. ports:
  25. - "81:80"
  26. restart: always
  27. environment:
  28. WORDPRESS_DB_HOST: db:3306
  29. WORDPRESS_DB_USER: wordpress
  30. WORDPRESS_DB_PASSWORD: wordpress
  31. volumes:
  32. db_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement