Guest User

Untitled

a guest
May 10th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. version: '3'
  2. services:
  3. sftp:
  4. image: atmoz/sftp
  5. restart: on-failure
  6. command: missftp:missftp:::destWorking,destRejected,destSuccess,attachments
  7. mailer:
  8. image: mailhog/mailhog
  9. ports:
  10. - 8025:8025
  11. - 1025:1025
  12. restart: on-failure
  13. mongo:
  14. image: mongo
  15. restart: on-failure
  16. mongo-express:
  17. image: mongo-express
  18. restart: on-failure
  19. ports:
  20. - 8081:8081
  21. environment:
  22. - ME_CONFIG_MONGODB_SERVER=mongo
  23. - ME_CONFIG_BASICAUTH_USERNAME=admin
  24. - ME_CONFIG_BASICAUTH_PASSWORD=1234
  25. data-service:
  26. build:
  27. context: .
  28. dockerfile: Dockerfile.data-service
  29. ports:
  30. - 8801:8801
  31. - 8802:8802
  32. restart: on-failure
  33. volumes:
  34. - /opt/app/mis/attachments:/attachments
  35. environment:
  36. - SPRING_DATA_MONGODB_HOST=mongo
  37. - SPRING_MAIL_HOST=mailer
  38. - SPRING_MAIL_USERNAME=apikey
  39. - SPRING_MAIL_PASSWORD=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
  40. - SPRING_MAIL_PORT=465
  41. ...
  42. upload-service:
  43. build:
  44. context: .
  45. dockerfile: Dockerfile.upload-service
  46. ports:
  47. - 8082:8082
  48. - 8083:8083
  49. restart: on-failure
  50. environment:
  51. - SPRING_DATA_MONGODB_HOST=mongo
  52. ...
  53.  
  54. FROM gradle:alpine
  55. COPY / ./
  56. RUN gradle build
  57. ENTRYPOINT java -jar ./mis-data-service/build/libs/mis-data-service-0.1.jar
  58.  
  59. docker-compose -f docker-compose.yml up
  60.  
  61. Building data-service
  62. Step 1/4 : FROM gradle:alpine
  63. ---> f438b7d58d0a
  64. Step 2/4 : COPY / ./
  65. ---> Using cache
  66. ---> b72d0e76b86c
  67. Step 3/4 : RUN gradle build
  68. ---> Running in 7ba780a524e5
  69.  
  70. FAILURE: Build failed with an exception.
  71.  
  72. * What went wrong:
  73. Failed to load native library 'libnative-platform.so' for Linux amd64.
  74.  
  75. * Try:
  76. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  77.  
  78. * Get more help at https://help.gradle.org
  79. ERROR: Service 'data-service' failed to build: The command '/bin/sh -c gradle build' returned a non-zero code: 1
Add Comment
Please, Sign In to add comment