Advertisement
Guest User

yml

a guest
Oct 15th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. version: '2'
  2.  
  3. networks:
  4. nginx-proxy:
  5. driver: bridge
  6. net-db:
  7. driver: bridge
  8.  
  9. volumes:
  10. db-mysql-site1:
  11. site1-theme:
  12. site1-uploads:
  13. site1-plugins:
  14.  
  15. services:
  16.  
  17. nginx:
  18. image: jwilder/nginx-proxy
  19. restart: always
  20. ports:
  21. - 80:80
  22. - 443:443
  23. volumes:
  24. - /var/run/docker.sock:/tmp/docker.sock:ro
  25. - ./certs:/etc/nginx/certs
  26. networks:
  27. - nginx-proxy
  28.  
  29. site1:
  30. image: wordpress
  31. restart: always
  32. volumes:
  33. - site1-theme:/var/www/html/wp-content/themes
  34. - site1-uploads:/var/www/html/wp-content/uploads
  35. - site1-plugins:/var/www/html/wp-content/plugins
  36. НУЖНО ЛИ СЮДА ПРОБРАСЫВАТЬ ССЛ???
  37. environment:
  38. WORDPRESS_DB_PASSWORD : password1
  39. WORDPRESS_DB_HOST : db1
  40. WORDPRESS_DB_USER : user1
  41. WORDPRESS_DB_NAME : db-site1
  42. VIRTUAL_HOST : site1.local
  43. networks:
  44. - nginx-proxy
  45. - net-db
  46.  
  47. db1:
  48. image: mysql
  49. restart: always
  50. environment:
  51. MYSQL_ROOT_PASSWORD : root_password1
  52. MYSQL_PASSWORD : password1
  53. MYSQL_USER : user1
  54. MYSQL_DATABASE : db-site1
  55. volumes:
  56. - db-mysql-site1:/var/lib/mysql
  57. networks:
  58. - net-db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement