Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. wordpress:
  5. image: wordpress:php7.1-apache
  6. ports:
  7. - 8001:80
  8. networks:
  9. - backend
  10. - traefik_public
  11. volumes:
  12. - /www/blog.example.com:/var/www/html
  13. environment:
  14. WORDPRESS_DB_HOST: db
  15. WORDPRESS_DB_USER: wordpress
  16. WORDPRESS_DB_PASSWORD: wordpress
  17. WORDPRESS_DB_NAME: wordpress
  18. WORDPRESS_TABLE_PREFIX: wp45_
  19. deploy:
  20. mode: replicated
  21. replicas: 2
  22. labels:
  23. APP: WORDPRESS
  24. traefik.port: 80
  25. traefik.frontend.rule: "Host:blog.example.com"
  26. restart_policy:
  27. condition: on-failure
  28. db:
  29. image: mysql:5.7
  30. volumes:
  31. - db_data:/var/lib/mysql
  32. environment:
  33. MYSQL_ROOT_PASSWORD: wordpress
  34. MYSQL_DATABASE: wordpress
  35. MYSQL_USER: wordpress
  36. MYSQL_PASSWORD: wordpress
  37. networks:
  38. - backend
  39. volumes:
  40. db_data:
  41. wp_content:
  42.  
  43. networks:
  44. traefik_public:
  45. external: true
  46. backend:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement