Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2017
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. version: '2'
  2. services:
  3. nginx:
  4. image: nginx
  5. container_name: nginx
  6. restart: 'always'
  7. ports:
  8. - '80:80'
  9. - '443:443'
  10. volumes:
  11. - '/etc/nginx/conf.d:/etc/nginx/conf.d'
  12. - '/etc/nginx/vhost.d:/etc/nginx/vhost.d'
  13. - '/usr/share/nginx/html'
  14. - '/etc/nginx/ssl:/etc/nginx/certs:ro'
  15.  
  16. nginx-gen:
  17. image: jwilder/docker-gen
  18. container_name: nginx-gen
  19. restart: 'always'
  20. volumes:
  21. - '/var/run/docker.sock:/tmp/docker.sock:ro'
  22. - './nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro'
  23. volumes_from:
  24. - nginx
  25. entrypoint: /usr/local/bin/docker-gen -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
  26.  
  27. letsencrypt-nginx-proxy-companion:
  28. image: jrcs/letsencrypt-nginx-proxy-companion
  29. container_name: letsencrypt-nginx-proxy-companion
  30. volumes_from:
  31. - nginx
  32. volumes:
  33. - '/var/run/docker.sock:/var/run/docker.sock:ro'
  34. - '/etc/nginx/ssl:/etc/nginx/certs:rw'
  35. environment:
  36. - NGINX_DOCKER_GEN_CONTAINER=nginx-gen
  37.  
  38. landing-page:
  39. image: nginx
  40. container_name: landing-page
  41. restart: 'always'
  42. volumes:
  43. - '/var/www/main:/usr/share/nginx/html'
  44. environment:
  45. VIRTUAL_HOST: 'mycoolsite.com'
  46. VIRTUAL_PORT: 80
  47. VIRTUAL_NETWORK: nginx-proxy
  48. LETSENCRYPT_HOST: 'mycoolsite.com'
  49. LETSENCRYPT_EMAIL: 'username@redbrick.dcu.ie'
  50.  
  51. plex:
  52. image: plexinc/pms-docker
  53. container_name: 'plex'
  54. restart: 'always'
  55. ports:
  56. - '32400:32400'
  57. environment:
  58. VIRTUAL_HOST: 'plex.mycoolsite.com'
  59. VIRTUAL_PORT: 32400
  60. VIRTUAL_NETWORK: nginx-proxy
  61. LETSENCRYPT_HOST: 'plex.mycoolsite.com'
  62. LETSENCRYPT_EMAIL: 'username@redbrick.dcu.ie'
  63. PLEX_UID: 0
  64. PLEX_GID: 0
  65. TZ: 'Europe/Dublin'
  66. VERSION: 'latest'
  67. PLEX_CLAIM: ''
  68. volumes:
  69. - '/etc/docker-compose/services/plex/config:/config'
  70. - '/var/tv:/tv'
  71. - '/var/plex:/plex'
  72. - '/var/movies:/movies'
  73. - '/var/downloads:/downloads'
  74. - '/var/transcode:/transcode'
  75. nextcloud:
  76. image: wonderfall/nextcloud
  77. restart: 'always'
  78. container_name: nextcloud
  79. hostname: next.mycoolsite.com
  80. environment:
  81. - VIRTUAL_HOST=next.mycoolsite.com
  82. - VIRTUAL_PORT=8888
  83. - VIRTUAL_NETWORK=nginx-proxy
  84. - LETSENCRYPT_HOST=next.mycoolsite.com
  85. - LETSENCRYPT_EMAIL=username@redbrick.dcu.ie
  86. - UID=1000
  87. - GID=1000
  88. - UPLOAD_MAX_SIZE=10G
  89. - APC_SHM_SIZE=128M
  90. - OPCACHE_MEM_SIZE=128
  91. - REDIS_MAX_MEMORY=64mb
  92. - CRON_PERIOD=15m
  93. - TZ=Europe/Dublin
  94. - ADMIN_USER=root
  95. - ADMIN_PASSWORD=CHNAGEME
  96. - DB_NAME=nextcloud
  97. - DB_USER=nextcloud
  98. - DB_PASSWORD=CHNAGEMETOANITHERPW
  99. - DB_HOST=nextcloud-db
  100. volumes:
  101. - /var/nextcloud:/data
  102. - ./config:/config
  103. - ./apps:/apps2
  104.  
  105. volumes:
  106. nextcloud-db-data:
  107.  
  108. networks:
  109. default:
  110. external:
  111. name: nginx-proxy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement