Guest User

Untitled

a guest
Nov 23rd, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. version: '3.3'
  2.  
  3. services:
  4.  
  5. node:
  6. build:
  7. context: ./node
  8. args:
  9. - NODE_VERSION=latest
  10. - PROJECT_PATH=/opt/app/
  11. - NODE_ENV=production
  12. - YARN=false
  13. volumes:
  14. - ../:/opt/app
  15. entrypoint: run-nodock "node index.js"
  16. tty: true
  17.  
  18. mysql:
  19. build:
  20. context: ./mysql
  21. args:
  22. - MYSQL_DATABASE=default_database
  23. - MYSQL_USER=default_user
  24. - MYSQL_PASSWORD=secret
  25. - MYSQL_ROOT_PASSWORD=root
  26. volumes:
  27. - ./data/mysql/:/var/lib/mysql
  28. expose:
  29. - "3306"
  30.  
  31. postgresql:
  32. build:
  33. context: ./postgresql
  34. args:
  35. - POSTGRES_USER=default_user
  36. - POSTGRES_PASSWORD=secret
  37. - POSTGRES_DB=default_db
  38. volumes:
  39. - ./data/postgresql/:/var/lib/postgresql
  40. expose:
  41. - "5432"
  42.  
  43. mongo:
  44. build: ./mongo
  45. expose:
  46. - "27017"
  47. volumes:
  48. - ./data/mongo/:/var/lib/mongodb
  49.  
  50. nginx:
  51. build:
  52. context: ./nginx
  53. args:
  54. - WEB_REVERSE_PROXY_PORT=8000
  55. - WEB_SSL=false
  56. - SELF_SIGNED=false
  57. - NO_DEFAULT=false
  58. volumes:
  59. - ./data/logs/nginx/:/var/log/nginx
  60. - ./certbot/certs/:/var/certs
  61. ports:
  62. - "80:80"
  63. - "443:443"
  64. tty: true
  65.  
  66. apache:
  67. build:
  68. context: ./apache
  69. args:
  70. - WEB_REVERSE_PROXY_PORT=8000
  71. - WEB_SSL=false
  72. - SELF_SIGNED=false
  73. - NO_DEFAULT=false
  74. volumes:
  75. - ./data/logs/apache/:/usr/local/apache2/logs
  76. - ./certbot/certs/:/var/certs
  77. ports:
  78. - "80:80"
  79. - "443:443"
  80. tty: true
  81.  
  82. certbot:
  83. build:
  84. context: ./certbot
  85. links:
  86. - apache
  87. - nginx
  88. volumes:
  89. - ./certbot/letsencrypt/:/var/www/letsencrypt
  90. - ./certbot/certs/:/var/certs
  91.  
  92. rabbitmq:
  93. build:
  94. context: ./rabbitmq
  95. args:
  96. - MANAGEMENT=false
  97. - FEDERATION=false
  98. - RABBITMQ_DEFAULT_USER=guest
  99. - RABBITMQ_DEFAULT_PASS=guest
  100. expose:
  101. - "5672"
  102.  
  103. workspace:
  104. build:
  105. context: ./workspace
  106. args:
  107. - NODE_VERSION=latest
  108. - TZ=UTC
  109. links:
  110. - nginx
  111. volumes:
  112. - ../:/opt/app
  113.  
  114. memcached:
  115. build:
  116. context: ./memcached
  117. expose:
  118. - "11211"
  119.  
  120. redis:
  121. build:
  122. context: ./redis
  123. expose:
  124. - "6379"
  125. volumes:
  126. - ./data/redis:/data
  127.  
  128. rethinkdb:
  129. build:
  130. context: ./rethinkdb
  131. volumes:
  132. - ./data/rethinkdb:/data
  133. expose:
  134. - "28015"
  135. - "29015"
  136. ports:
  137. - "28080:8080"
Add Comment
Please, Sign In to add comment