Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. postgres:
  2. image: postgres:9.4.21
  3. environment:
  4. POSTGRES_USER: myusername
  5. POSTGRES_PASSWORD: myPass
  6. ports:
  7. -'5432:5432'
  8. volumes:
  9. ~/.docker-volumes/mobydock/postgresql/data:/var/lib/postgresql/data
  10.  
  11. redis:
  12. image: redis: 5.0.5
  13. ports:
  14. - '6379:6379'
  15. volumes:
  16. ~/.docker-volumes/mobydock/redis/data:/var/lib/redis/data
  17.  
  18. mobydock:
  19. build: .
  20. command: gunicorn -b 0.0.0.0:8000 --reload --access-logfile - "mobydock.app:create_app()"
  21. environment:
  22. PYTHONUNBUFFERED: true
  23. links:
  24. - postgres
  25. - redis
  26. volumes:
  27. - .:/mobydock
  28. ports:
  29. - '8000:8000'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement