Advertisement
Guest User

Untitled

a guest
Mar 30th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. app:
  2. build: ../../
  3. dockerfile: docker/release/Dockerfile
  4. links:
  5. - db
  6. environment:
  7. DJANGO_SETTINGS_MODULE: todobackend.settings.release
  8. MYSQL_HOST: db
  9. MYSQL_USER: todo
  10. MYSQL_PASSWORD: password
  11. volumes_from:
  12. - webroot
  13. command:
  14. - uwsgi
  15. - "--socket /var/www/todobackend/todobackend.sock"
  16. - "--chmod-socket=666"
  17. - "--module todobackend.wsgi"
  18. - "--master"
  19. - "--die-on-term"
  20.  
  21. test:
  22. image: jmenga/todobackend-specs
  23. links:
  24. - nginx
  25. environment:
  26. URL: http://nginx:8000/todos
  27. JUNIT_REPORT_PATH: /reports/acceptance.xml
  28. JUNIT_REPORT_STACK: 1
  29. command: --reporter mocha-jenkins-reporter
  30.  
  31. nginx:
  32. build: .
  33. dockerfile: Dockerfile.nginx
  34. links:
  35. - app
  36. ports:
  37. - "8000:8000"
  38. volumes_from:
  39. - webroot
  40.  
  41. webroot:
  42. build: ../../
  43. dockerfile: docker/release/Dockerfile
  44. volumes:
  45. - /var/www/todobackend
  46. entrypoint: "true"
  47.  
  48. db:
  49. image: mysql:5.6
  50. expose:
  51. - "3306"
  52. environment:
  53. MYSQL_DATABASE: todobackend
  54. MYSQL_USER: todo
  55. MYSQL_PASSWORD: password
  56. MYSQL_ROOT_PASSWORD: password
  57.  
  58. agent:
  59. image: jmenga/ansible
  60. links:
  61. - db
  62. environment:
  63. PROBE_HOST: "db"
  64. PROBE_PORT: "3306"
  65. command: ["probe.yml"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement