Advertisement
zashkurka

docker compose

Nov 13th, 2022
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4. postgres:
  5. image: 'postgres:14.5'
  6. env_file:
  7. - '.env'
  8. volumes:
  9. - 'postgres:/var/lib/postgresql/data'
  10. ports:
  11. - '5432:5432'
  12.  
  13. redis:
  14. image: 'redis:7-alpine'
  15. command: 'redis-server --requirepass devpassword'
  16. volumes:
  17. - 'redis:/var/lib/redis/data'
  18. ports:
  19. - '6379:6379'
  20.  
  21. website:
  22. build: .
  23. command: >
  24. gunicorn -c "python:config.gunicorn" --reload "eoirdiscovery.app:create_app()"
  25. env_file:
  26. - '.env'
  27. volumes:
  28. - '.:/eoirdiscovery'
  29. - type: bind
  30. source: '/home/shuba/test-data/foia-09-22'
  31. target: '/test-data/foia/'
  32.  
  33. ports:
  34. - '8000:8000'
  35.  
  36.  
  37. volumes:
  38. postgres:
  39. redis:
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement