Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.  
  5. db:
  6. image: 'postgres:9.4'
  7. environment:
  8. - POSTGRES_USER=postgres
  9. - POSTGRES_PASSWORD=root
  10. - POSTGRES_DATABASE=postgres
  11. - POSTGRES_HOST=db
  12. volumes:
  13. - pgdata:/var/lib/postgresql/data
  14.  
  15. api:
  16. build: .
  17. volumes:
  18. - .:/opt/code
  19. environment:
  20. - VIZIBL_CONFIG=Docker
  21. - POSTGRES_USER=postgres
  22. - SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://postgres:root@db:5432/postgres
  23. - POSTGRES_PASSWORD=root
  24. - POSTGRES_DATABASE=postgres
  25. - POSTGRES_HOST=db
  26. depends_on:
  27. - db
  28. stdin_open: true
  29. tty: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement