Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. db:
  5. environment:
  6. - MYSQL_ROOT_PASSWORD=abc123
  7. - MYSQL_USER=root
  8. - MYSQL_DATABASE=measurement-for-3-size_development
  9. build: ./docker/mysql
  10. ports:
  11. - "23306:3306"
  12. web: &app_base
  13. build:
  14. context: .
  15. dockerfile: Dockerfile.development
  16. args:
  17. - APP_HOME=${PWD}
  18. ports:
  19. - "23000:3000"
  20. command: 'scripts/start-server.sh'
  21. links:
  22. - db
  23. volumes:
  24. - .:${PWD}
  25. environment:
  26. DATABASE_URL: mysql2://root:abc123@db:3306
  27. volumes_from:
  28. - bundle
  29. spring:
  30. <<: *app_base
  31. ports: []
  32. command: spring server
  33. stdin_open: true
  34. tty: true
  35. pid: host
  36. environment:
  37. DATABASE_URL: mysql2://root:abc123@db:3306
  38. SPRING_SOCKET: /tmp/spring/spring.sock
  39. volumes:
  40. - .:${PWD}
  41. - spring:/tmp/spring
  42. bundle:
  43. image: busybox
  44. volumes:
  45. - /bundle
  46. volumes:
  47. spring:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement