Advertisement
Jl_e_B

Untitled

Oct 11th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. nginx:
  5. restart: always
  6. image: nginx:latest
  7. expose:
  8. - 8080
  9. ports:
  10. - "80:8080"
  11. volumes:
  12. - ./sources/newcams/static:/opt/newcams/static
  13. - ./sources/newcams/media:/opt/newcams/media
  14. - ./logs:/opt/logs
  15. - ./nginx/conf:/etc/nginx/conf.d
  16. depends_on:
  17. - python
  18. python:
  19. restart: always
  20. build:
  21. context: ./python
  22. dockerfile: ./Dockerfile
  23. volumes:
  24. - ./sources:/opt
  25. expose:
  26. - 8000
  27. ports:
  28. - 8000:8000
  29. command: "gunicorn -c gunicorn.py --chdir /opt/newcams/ newcams.wsgi"
  30.  
  31. mariadb:
  32. image: mariadb:latest
  33. ports:
  34. - 3306:3306
  35. environment:
  36. MYSQL_ROOT_PASSWORD: rootpass
  37. MYSQL_USER: django
  38. MYSQL_PASSWORD: djangopass
  39. MYSQL_DATABASE: mydb
  40. volumes:
  41. - ./db:/var/lib/mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement