Guest User

Untitled

a guest
Sep 12th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. version: "3"
  2. services:
  3. cassandra00:
  4. restart: always
  5. build: ./db/cassDocker
  6. # image: cassandra:latest
  7. volumes:
  8. - ./db/cassdata:/var/lib/cassandra
  9. # - ./db/cassentry:/docker-entrypoint-initdb.d
  10. # - ./db/cassinit/init.sh:/init.sh
  11. ports:
  12. - 7000:7000
  13. - 7001:7001
  14. - 7199:7199
  15. - 9042:9042
  16. - 9160:9160
  17. environment:
  18. - CASSANDRA_START_RPC=true
  19. # command: ["/init.sh"]
  20. db:
  21. restart: always
  22. build: ./db/pgDocker
  23. environment:
  24. POSTGRES_USER: patientplatypus
  25. POSTGRES_PASSWORD: SUPERSECRETUPD00TALSOFAKER
  26. POSTGRES_DB: zennify
  27. expose:
  28. - "5432"
  29. ports:
  30. - 5432:5432
  31. volumes:
  32. - ./db/pgdata:/var/lib/postgresql/data
  33. # command: ["./wait-for-it.sh", "cassandra00:9042", "--", "python", "app.py"]
  34. # can chain waits but i dont know what the command should be to build the postgres image
  35. app:
  36. restart: always
  37. # restart: on-failure
  38. build:
  39. context: .
  40. dockerfile: Dockerfile
  41. command: bash -c 'sleep 120; realize start --run'
  42. # command: 'realize start --run'
  43. # command: bash -c 'while !</dev/tcp/db/5432; do sleep 100; done; realize start --run'
  44. # command: bash -c 'while !</dev/tcp/db/5432; do sleep 20; done; go run main.go'
  45. ports:
  46. - 8000:8000
  47. depends_on:
  48. - db
  49. - cassandra00
  50. links:
  51. - db
  52. - cassandra00
  53. volumes:
  54. - ./:/go/src/github.com/patientplatypus/webserver/
Add Comment
Please, Sign In to add comment