Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. version: '2'
  2. services:
  3.  
  4. myproxy:
  5. build: myproxy
  6. container_name: ppproxy
  7. ports:
  8. - "80:80"
  9. - "443:443"
  10. volumes:
  11. - /var/run/docker.sock:/tmp/docker.sock:ro
  12. networks:
  13. default:
  14. aliases:
  15. - www.domain1.it
  16. - www.domain2.it
  17. - www.domain4.it
  18.  
  19. mydb1:
  20. build: mydb
  21. environment:
  22. DB_USER: sdffdssdf
  23. DB_PASSWORD: fdsfsdsdf
  24. DB_NAME: dbanme1
  25. DB_ENCODING: UTF-8
  26. VIRTUAL_HOST: myhost1.net.lan
  27. VIRTUAL_PORT: 5432
  28.  
  29. mydb2:
  30. build: mydb
  31. environment:
  32. DB_USER: ssdfsdfs
  33. DB_PASSWORD: sffdssd
  34. DB_NAME: dbanme2
  35. DB_ENCODING: UTF-8
  36. VIRTUAL_HOST: myhost2.net.lan
  37. VIRTUAL_PORT: 5432
  38.  
  39. www:
  40. image: myimages/oldservice:v1.1
  41. container_name: www
  42. command: /bin/bash /root/launch
  43. environment:
  44. VIRTUAL_HOST: www.domain1.it
  45. VIRTUAL_PORT: 80
  46. ports:
  47. - 80
  48. depends_on:
  49. - mydb1
  50. - mydb1
  51. - myws
  52.  
  53. myws:
  54. build: myjettycontainer
  55. environment:
  56. HTTPS_METHOD: noredirect
  57. VIRTUAL_HOST: www.domain2.it
  58. VIRTUAL_PORT: 8080
  59. ports:
  60. - 8080
  61. depends_on:
  62. - mydb1
  63. - mydb2
  64. - myproxy
  65. - mypostfix
  66.  
  67. mypostfix:
  68. image: catatnight/postfix
  69. container_name: mailer
  70. environment:
  71. maildomain: domain1.it
  72. smtp_user: mymail:sfsfdfds
  73. ports:
  74. - 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement