Guest User

Untitled

a guest
Mar 22nd, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. version: "3"
  2. services:
  3. postgres:
  4. image: postgres:11.2-alpine
  5. environment:
  6. POSTGRES_PASSWORD: '!abcd1234'
  7. POSTGRES_USER: purplecow
  8. POSTGRES_DB: purple_cow
  9. volumes:
  10. - ./postgres-data:/var/lib/postgresql/data
  11. ports:
  12. - "5432:5432"
  13. web:
  14. build: .
  15. depends_on:
  16. - postgres
  17. ports:
  18. - "3000:3000"
  19. environment:
  20. DATABASE_URL: postgres://purplecow@postgres:5432/purple_cow
  21. restart: on-failure
  22. command: ["./scripts/wait-for-it.sh","postgres:5432","--", "yarn", "start"]
Add Comment
Please, Sign In to add comment