Guest User

Untitled

a guest
Dec 26th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. version: '2'
  2. services:
  3. medo-server:
  4. image: xxxxxxxxxx.dkr.ecr.region.amazonaws.com/server
  5. cpu_shares: 100
  6. ports:
  7. - 3003:3003
  8. command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; npm start'
  9. links:
  10. - db
  11. environment:
  12. - PORT=3003
  13. volumes:
  14. - client:/client
  15. db:
  16. image: postgres
  17. cpu_shares: 100
  18. environment:
  19. - POSTGRES_USER=postgres
  20. - POSTGRES_PASSWORD=password
  21. - POSTGRES_DB=example
  22. volumes:
  23. - data:/var/lib/postgresql/data
  24.  
  25. volumes:
  26. data: {}
  27. client: {}
Add Comment
Please, Sign In to add comment