Advertisement
Nomadadon

docker-compose.yml

Apr 23rd, 2021
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. # Front-End Proxy and organizer
  5. openvpn:
  6. build: openvpn/
  7. hostname: helheim
  8. container_name: openvpn
  9. cap_add:
  10. - NET_ADMIN
  11. environment:
  12. - PUID=0
  13. - PGID=0
  14. - TZ=America/Denver
  15. - FILE__PASSWORD=/config/etc/VyperVPN.txt
  16. - INTERFACE=ens160
  17. - DOMAIN_NAME="docker.local"
  18. cap_add:
  19. - NET_ADMIN
  20. devices:
  21. - "/dev/net/tun:/dev/net/tun"
  22. privileged: true
  23. tty: true
  24. volumes:
  25. - /root/MediaRage/OpenVPN/data:/data
  26. - /root/MediaRage/OpenVPN/etc:/etc/openvpn
  27. networks:
  28. - internal
  29. - proxy
  30. ports:
  31. # OpenVPN-as
  32. - 943:943
  33. - 9443:9443
  34. - 1194:1194/udp
  35. # traefik
  36. #- 80:80
  37. #- 443:443
  38. # Sonaar
  39. - 8989:8989
  40. # Radarr
  41. - 7878:7878
  42. # Ombi
  43. - 3579:3579
  44. # Portainer
  45. - 2375:2375
  46. - 8000:8000
  47. - 9000:9000
  48. labels:
  49. - "traefik.enable=true"
  50. - "traefik.http.routers.openvpn.rule=Host(`openvpn`)"
  51. - "traefik.http.services.openvpn.loadbalancer.server.port=1194"
  52. restart: always
  53.  
  54. traefik:
  55. container_name: traefik
  56. image: camel:5000/traefik
  57. restart: always
  58. domainname: docker.localhost
  59. environment:
  60. - PUID=0
  61. - PGID=0
  62. - TZ=America/Denver
  63. - DOMAIN_NAME="docker.local"
  64. command: --api.insecure=true --providers.docker
  65. ports:
  66. - 80:80
  67. #- 443:443
  68. - 8080:8080
  69. volumes:
  70. - /etc/localtime:/etc/localtime:ro
  71. - /var/run/docker.sock:/var/run/docker.sock:ro
  72. - /root/MediaRage/traefik/traefik.toml:/etc/traefik.toml
  73. labels:
  74. - "traefik.enable=true"
  75. - "traefik.backend=docker"
  76. - "traefik.http.routers.traefik.rule=Host(`traefik`)"
  77. - "traefik.port=8080"
  78. - "traefik.http.services.traefik.loadbalancer.server.port=80"
  79. - "traefik.http.services.traefik.loadbalancer.server.port=8080"
  80.  
  81. sonarr:
  82. image: camel:5000/sonarr
  83. depends_on:
  84. - openvpn
  85. container_name: sonarr
  86. network_mode: service:openvpn
  87. volumes:
  88. # Moved to /root for performance
  89. - /root/MediaRage/sonarr:/config
  90. #
  91. - "data02Downloads:/Downloads"
  92. - "data02TV:/tv"
  93. - "data02Anime:/anime"
  94. - /var/run/docker.sock:/var/run/docker.sock
  95. environment:
  96. - PUID=0
  97. - PGID=0
  98. - UMASK_SET=022
  99. - TZ=America/Denver
  100. - DOMAIN_NAME="docker.local"
  101. env_file:
  102. - uidgid.env
  103. labels:
  104. - "traefik.http.routers.sonarr.rule=Host(`sonarr`)"
  105. - "traefik.http.services.sonarr.loadbalancer.server.port=8989"
  106. restart: always
  107.  
  108. radarr:
  109. image: camel:5000/radarr
  110. depends_on:
  111. - openvpn
  112. container_name: radarr
  113. network_mode: service:openvpn
  114. volumes:
  115. # Moved to /root for performance
  116. - /root/MediaRage/radarr:/config
  117. #
  118. - "data02Downloads:/Downloads"
  119. - "data02Movies:/Movies"
  120. - /mnt/data02/Movies/SortMe:/SortMe
  121. - /var/run/docker.sock:/var/run/docker.sock
  122. environment:
  123. - PUID=0
  124. - PGID=0
  125. - UMASK_SET=022
  126. - TZ=America/Denver
  127. - DOMAIN_NAME="docker.local"
  128. env_file:
  129. - uidgid.env
  130. labels:
  131. - "traefik.enable=true"
  132. - "traefik.http.routers.radarr.rule=Host(`radarr`)"
  133. - "traefik.http.services.radarr.loadbalancer.server.port=7878"
  134. restart: always
  135.  
  136. portainer:
  137. container_name: portainer
  138. image: camel:5000/portainer
  139. depends_on:
  140. - openvpn
  141. environment:
  142. - PUID=0
  143. - PGID=0
  144. - UMASK_SET=022
  145. - TZ=America/Denver
  146. - DOMAIN_NAME="docker.local"
  147. network_mode: service:openvpn
  148. volumes:
  149. - /var/run/docker.sock:/var/run/docker.sock
  150. - /data/portainer_data:/data
  151. # This should keep the container running even with no command specified
  152. tty: true
  153. labels:
  154. - "traefik.http.routers.portainer.rule=Host(`portainer`)"
  155. - "traefik.http.services.portainer.loadbalancer.server.port=2375"
  156. restart: always
  157.  
  158. ombi:
  159. image: camel:5000/ombi
  160. depends_on:
  161. - openvpn
  162. container_name: ombi
  163. environment:
  164. - PUID=0
  165. - PGID=0
  166. - UMASK_SET=022
  167. - TZ=America/Denver
  168. - BASE_URL=/ombi #optional
  169. - DOMAIN_NAME="docker.local"
  170. network_mode: service:openvpn
  171. volumes:
  172. - /root/MediaRage/ombi:/config
  173. tty: true
  174. labels:
  175. - "traefik.http.routers.ombi.rule=Host(`ombi`)"
  176. - "traefik.http.services.ombi.loadbalancer.server.port=3579"
  177. restart: always
  178.  
  179. volumes:
  180. data02Downloads:
  181. driver_opts:
  182. type: "nfs"
  183. o: "addr=expeditor,nolock,soft,rw"
  184. device: ":/volume1/data02/Downloads"
  185. data02Configs:
  186. driver_opts:
  187. type: "nfs"
  188. o: "addr=expeditor,nolock,soft,rw"
  189. device: ":/volume1/data02/config"
  190. data02Movies:
  191. driver_opts:
  192. type: "nfs"
  193. o: "addr=expeditor,nolock,soft,rw"
  194. device: ":/volume1/data02/Movies"
  195. data02TV:
  196. driver_opts:
  197. type: "nfs"
  198. o: "addr=expeditor,nolock,soft,rw"
  199. device: ":/volume1/data02/Television"
  200. data02Anime:
  201. driver_opts:
  202. type: "nfs"
  203. o: "addr=expeditor,nolock,soft,rw"
  204. device: ":/volume1/data02/Anime"
  205.  
  206. networks:
  207. proxy:
  208. external: true
  209. internal:
  210. external: false
  211.  
  212.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement