Guest User

Untitled

a guest
Sep 5th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. version: "3"
  2. services:
  3. db:
  4. restart: always
  5. build: ./db
  6. environment:
  7. POSTGRES_USER: patientplatypus
  8. POSTGRES_PASSWORD: blah
  9. POSTGRES_DB: zennify
  10. expose:
  11. - "5432"
  12. ports:
  13. - 5432:5432
  14. volumes:
  15. - ./db/pgdata:/var/lib/postgresql/data
  16. app:
  17. restart: always
  18. build:
  19. context: .
  20. dockerfile: Dockerfile
  21. command: bash -c 'while !</dev/tcp/db/5432; do sleep 10; done; realize start --run'
  22. # command: bash -c 'while !</dev/tcp/db/5432; do sleep 10; done; go run main.go'
  23. ports:
  24. - 8000:8000
  25. depends_on:
  26. - db
  27. links:
  28. - db
  29. volumes:
  30. - ./:/go/src/github.com/patientplatypus/webserver/
Add Comment
Please, Sign In to add comment