Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. version: '3'
  2. services:
  3. DB:
  4. image: postgres:9.6.0
  5. ports:
  6. - "5430:5432"
  7. environment:
  8. - POSTGRES_PASSWORD=postgres
  9. - POSTGRES_USER=postgres
  10. - POSTGRES_DB=mydatabase
  11. volumes:
  12. - /srv/docker/postgresql:/var/lib/postgresql
  13. container_name: lx-gulp-db
  14. API:
  15. image: lx-gulp:api
  16. ports:
  17. - "8200:8080"
  18. container_name: lx-gulp-api
  19. depends_on:
  20. - DB
  21. links:
  22. - "DB:lx-gulp-db"
  23. WEB:
  24. image: lx-gulp:web
  25. ports:
  26. - "8008:8080"
  27. container_name: lx-gulp-web
  28. links:
  29. - "API:lx-gulp-api"
  30.  
  31. spring:
  32. profiles: production
  33. datasource:
  34. url: jdbc:postgresql://lx-gulp-db:5430/mydatabase
  35. username: postgres
  36. password: postgres
  37. driver-class-name: org.postgresql.Driver
  38. test-on-borrow: true
  39. validation-query: SELECT 1 FROM dual
  40. jpa:
  41. hibernate:
  42. ddl-auto: validate
  43.  
  44. jackson:
  45. serialization:
  46. WRITE_DATES_AS_TIMESTAMPS: false
  47. date-format: com.fasterxml.jackson.databind.util.ISO8601DateFormat
  48. server:
  49. port: 8080
  50. flyway:
  51. schemas: public
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement