Advertisement
Guest User

Docker-compose ipv4_address issue

a guest
Jun 23rd, 2016
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. wt2-bind:
  5. image: wt2/bind:latest
  6. container_name: wt2-bind
  7. restart: unless-stopped
  8. ports:
  9. - "53:53/udp"
  10. - "953:953"
  11. volumes:
  12. - ./wt2-bind/etc:/etc/bind
  13. - ./wt2-bind/webmin:/etc/webmin
  14. - ./wt2-bind/lib:/var/lib/bind
  15. - ./wt2-bind/log:/var/log/bind
  16. - ./wt2-bind/www:/usr/share/webmin
  17. environment:
  18. ROOT_PASSWORD: 'waffles4love'
  19. labels:
  20. SERVICE_53_NAME: "Bind DNS"
  21. SERVICE_953_NAME: "Bind RNDC"
  22. be.ephec-ti.wt2.mission: "1"
  23. be.ephec-ti.wt2.role: "Cluster SOA"
  24. networks:
  25. lightyear:
  26. ipv4_address: 23.20.2.2
  27.  
  28. wt2-resolver:
  29. image: wt2/resolver
  30. container_name: wt2-resolver
  31. restart: unless-stopped
  32. volumes:
  33. - ./wt2-resolver/etc:/etc/bind
  34. labels:
  35. be.ephec-ti.mission: "1"
  36. be.ephec-ti.role: "Cluster Resolver"
  37. networks:
  38. lightyear:
  39. ipv4_address: 23.20.0.1
  40.  
  41. wt2-apache:
  42. image: wt2/apache-php
  43. container_name: wt2-apache
  44. restart: unless-stopped
  45. volumes:
  46. - ./wt2-apache/www:/var/www
  47. - ./wt2-apache/etc:/etc/apache2
  48. - ./wt2-apache/log:/var/log/apache2
  49. - ./wt2-apache/ssl:/etc/ssl
  50. labels:
  51. be.ephec-ti.wt2.mission: "2"
  52. be.ephec-ti.wt2.role: "Web Server"
  53. networks:
  54. lightyear:
  55. ipv4_address: 23.20.2.42
  56. dns: 23.20.0.1
  57.  
  58. wt2-adamant:
  59. image: wt2/adamant
  60. container_name: wt2-adamant
  61. restart: unless-stopped
  62. ports:
  63. - "55555:55555"
  64. volumes:
  65. - ./wt2-adamant/snapshot:/AdamantServer
  66. labels:
  67. SERVICE_55555_NAME: "Adamant"
  68. be.ephec-ti.wt2.mission: "none"
  69. be.ephec-ti.wt2.role: "WoodyToys employees distraction!"
  70. networks:
  71. lightyear:
  72. ipv4_address: 23.20.2.100
  73. dns: 23.20.0.1
  74.  
  75. wt2-squid3:
  76. image: wt2/squid3
  77. container_name: wt2-squid3
  78. restart: always
  79. ports:
  80. - "3128:3128"
  81. volumes:
  82. - ./wt2-squid3/var:/var/spool/squid3
  83. - ./wt2-squid3/etc:/etc/squid3
  84. - ./wt2-squid3/log:/var/log/squid3
  85. - ./wt2-squid3/share:/usr/share/squid3
  86. labels:
  87. SERVICE_3128_NAME: "Squid 3"
  88. be.ephec-ti.wt2.mission: "2"
  89. be.ephec-ti.wt2.role: "Proxy"
  90. networks:
  91. lightyear:
  92. ipv4_address: 23.20.2.69
  93. dns: 23.20.0.1
  94.  
  95. wt2-nginx:
  96. image: nginx:latest
  97. container_name: wt2-nginx
  98. restart: unless-stopped
  99. ports:
  100. - "80:80"
  101. - "443:443"
  102. volumes:
  103. - ./wt2-nginx/etc:/etc/nginx
  104. - ./wt2-nginx/log:/var/log/nginx
  105. - ./wt2-nginx/www:/var/www
  106. labels:
  107. SERVICE_80_NAME: "Nginx http"
  108. SERVICE_443_NAME: "Nginx https"
  109. be.ephec-ti.wt2.mission: "2"
  110. be.ephec-ti.wt2.role: "Reverse-Proxy"
  111. networks:
  112. lightyear:
  113. ipv4_address: 23.20.2.10
  114. dns: 23.20.0.1
  115.  
  116. wt2-mysql:
  117. image: mysql:latest
  118. container_name: wt2-mysql
  119. restart: unless-stopped
  120. ports:
  121. - "3306:3306"
  122. volumes:
  123. - ./wt2-mysql/etc:/etc/mysql
  124. - ./wt2-mysql/var:/var/lib/mysql
  125. - ./wt2-mysql/log:/var/log/mysql
  126. environment:
  127. MYSQL_USER: 'wt2'
  128. MYSQL_PASSWORD: 'wt2'
  129. MYSQL_DATABASE: 'wt2db'
  130. MYSQL_ROOT_PASSWORD: 'waffles4love'
  131. labels:
  132. SERVICE_3306_NAME: "MySQL"
  133. be.ephec-ti.wt2.mission: "2"
  134. be.ephec-ti.wt2.role: "Database"
  135. networks:
  136. lightyear:
  137. ipv4_address: 23.20.2.33
  138. dns: 23.20.0.1
  139.  
  140. wt2-registrator:
  141. image: gliderlabs/registrator:latest
  142. container_name: wt2-registrator
  143. restart: unless-stopped
  144. volumes:
  145. - /var/run/docker.sock:/tmp/docker.sock
  146. labels:
  147. be.ephec-ti.wt2.mission: "none"
  148. be.ephec-ti.wt2.role: "Service Registry Registrator"
  149. network_mode: "host"
  150.  
  151. wt2-rsyslog:
  152. image: voxxit:rsyslog
  153. container_name: wt2-rsyslog
  154. restart: unless-stopped
  155. ports:
  156. - "514:514/udp"
  157. volumes:
  158. - ./wt2-rsyslog/rsyslog.d:/etc/rsyslog.d
  159. - ./wt2-rsyslog/log:/var/log
  160. labels:
  161. SERVICE_514_NAME: "RSyslog"
  162. be.ephec-ti.be.wt2.mission: "none"
  163. be.ephec-ti.be.wt2.role: "Logging Backend"
  164. networks:
  165. lightyear:
  166. ipv4_address: 23.20.2.32
  167. dns: 23.20.0.1
  168.  
  169. wt2-mail:
  170. image: tvial/docker-mailserver:v2
  171. container_name: wt2-mail
  172. hostname: mail
  173. domainname: wt2.ephec-ti.be
  174. ports:
  175. - "587:587"
  176. - "25:25"
  177. - "143:143"
  178. - "993:993"
  179. volumes:
  180. - ./wt2-mail/maildata:/var/mail
  181. - ./wt2-mail/config:/tmp/docker-mailserver/
  182. - ./wt2-mail/postfix:/etc/postfix
  183. - ./wt2-mail/dovecot:/etc/dovecot
  184. - ./wt2-mail/log:/var/log/mail
  185. labels:
  186. SERVICE_25_NAME: "SMTP"
  187. SERVICE_587_NAME: "SSL SMTP"
  188. SERVICE_143_NAME: "IMAP"
  189. SERVICE_993_NAME: "SSL IMAP"
  190. networks:
  191. lightyear:
  192. ipv4_address: 23.20.2.88
  193. dns: 23.20.0.1
  194.  
  195. wt2-asterisk:
  196. image: wt2-asterisk
  197. container_name: wt2-asterisk
  198. restart: unless-stopped
  199. network_mode: "host"
  200. labels:
  201. be.ephec-ti.wt2.mission: "4"
  202. be.ephec-ti.wt2.role: "voIP"
  203.  
  204. wt2-openvpn:
  205. image: kylemanna/openvpn
  206. container_name: wt2-openvpn
  207. restart: unless-stopped
  208. #volumes_from:
  209. # - ovpn_data
  210. labels:
  211. be.ephec-ti.wt2.mission: "none"
  212. be.ephec-ti.wt2.role: "openVPN"
  213. networks:
  214. lightyear:
  215. ipv4_address: 23.20.2.23
  216. dns: 23.20.0.1
  217.  
  218. wt2-owncloud:
  219. image: owncloud
  220. container_name: wt2-owncloud
  221. restart: unless-stopped
  222. volumes:
  223. - ./wt2-owncloud/html:/var/www/html
  224. labels:
  225. be.ephec-ti.wt2.mission: "5"
  226. be.ephec-ti.wt2.role: "WebDav"
  227. networks:
  228. lightyear:
  229. ipv4_address: 23.20.2.67
  230. dns: 23.20.0.1
  231.  
  232. wt2-jessiessl:
  233. image: wt2/jessiessl
  234. container_name: wt2-jessiessl
  235. restart: unless-stopped
  236. volumes:
  237. - ./wt2-jessiessl/log:/var/log
  238. - ./wt2-jessiessl/ca:/root/ca
  239. labels:
  240. be.ephec-ti.wt2.mission: "none"
  241. be.ephec-ti.wt2.role: "Certificate Authority"
  242. networks:
  243. lightyear:
  244. ipv4_address: 23.20.2.70
  245. dns: 23.20.2.1
  246. networks:
  247. lightyear:
  248. driver: bridge
  249. ipam:
  250. driver: default
  251. config:
  252. - subnet: 23.20.0.0/16
  253. ip_range: 23.20.2.0/24
  254. gateway: 23.20.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement