Advertisement
Guest User

Untitled

a guest
Apr 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. version: "3"
  2. services:
  3.  
  4. db:
  5. image: postgres:9.6
  6. volumes:
  7. - pg_data:/var/lib/postgresql/data/
  8. environment:
  9. POSTGRES_DB: derp
  10. POSTGRES_USER: postgres
  11. POSTGRES_PASSWORD: postgres
  12.  
  13. api:
  14. build: .
  15. command: python /code/api/manage.py migrate --noinput
  16. command: python /code/api/manage.py runserver 8000
  17.  
  18. volumes:
  19. - .:/code
  20. ports:
  21. - "8000:8000"
  22. - "6379:6379"
  23. depends_on:
  24. - db
  25.  
  26. volumes:
  27. pg_data: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement