Guest User

Untitled

a guest
Mar 17th, 2018
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. services:
  4. db:
  5. image: postgres:latest
  6. container_name: rapid_goat_postgres_server_1
  7. nginx:
  8. image: nginx:latest
  9. container_name: rapid_goat_nginx_1
  10. ports:
  11. - "8081:8081"
  12. volumes:
  13. - .:/code
  14. - ./nginx:/etc/nginx/conf.d
  15. - /static:/static
  16. depends_on:
  17. - web
  18. web:
  19. build: .
  20. container_name: rapid_goat_django
  21. command: bash -c "chmod -R 755 . && cd rapidgoat_scraper_product && python3 manage.py collectstatic --noinput && python3 manage.py makemigrations && python3 manage.py migrate && gunicorn rapidgoat_scraper.wsgi:application -b 0.0.0.0:8000"
  22. volumes:
  23. - .:/code
  24. ports:
  25. - "8000:8000"
  26. depends_on:
  27. - db
RAW Paste Data