Guest User

Untitled

a guest
Dec 13th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. MYSQL_PASSWORD=myPassword
  2. MYSQL_DATABASE=nextcloud
  3. MYSQL_USER=nextcloud
  4.  
  5. version: '3'
  6.  
  7. services:
  8. db:
  9. image: mariadb
  10. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  11. restart: always
  12. volumes:
  13. - db:/var/lib/mysql
  14. environment:
  15. - MYSQL_ROOT_PASSWORD=myRootPassword
  16. env_file:
  17. - db.env
  18.  
  19. app:
  20. image: nextcloud:fpm-alpine
  21. restart: always
  22. volumes:
  23. - nextcloud:/var/www/html
  24. environment:
  25. - MYSQL_HOST=db
  26. env_file:
  27. - db.env
  28. depends_on:
  29. - db
  30.  
  31. web:
  32. build: ./web
  33. restart: always
  34. volumes:
  35. - nextcloud:/var/www/html:ro
  36. environment:
  37. - VIRTUAL_HOST=cloud.example.de
  38. - LETSENCRYPT_HOST=cloud.example.de
  39. - LETSENCRYPT_EMAIL=example@gmail.com
  40. depends_on:
  41. - app
  42. networks:
  43. - proxy-tier
  44. - default
  45.  
  46. proxy:
  47. build: ./proxy
  48. restart: always
  49. ports:
  50. - 80:80
  51. - 443:443
  52. labels:
  53. com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
  54. volumes:
  55. - certs:/etc/nginx/certs:ro
  56. - vhost.d:/etc/nginx/vhost.d
  57. - html:/usr/share/nginx/html
  58. - /var/run/docker.sock:/tmp/docker.sock:ro
  59. networks:
  60. - proxy-tier
  61.  
  62. letsencrypt-companion:
  63. image: jrcs/letsencrypt-nginx-proxy-companion
  64. restart: always
  65. volumes:
  66. - certs:/etc/nginx/certs
  67. - vhost.d:/etc/nginx/vhost.d
  68. - html:/usr/share/nginx/html
  69. - /var/run/docker.sock:/var/run/docker.sock:ro
  70. networks:
  71. - proxy-tier
  72. depends_on:
  73. - proxy
  74.  
  75. volumes:
  76. db:
  77. nextcloud:
  78. certs:
  79. vhost.d:
  80. html:
  81.  
  82. networks:
  83. proxy-tier:
Add Comment
Please, Sign In to add comment