Guest User

Untitled

a guest
Apr 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4.  
  5. #CMS itself
  6. dnetcms:
  7. image: wardef/dnetcms:develop
  8. restart: unless-stopped
  9. # ports:
  10. # - 5000:80
  11. links:
  12. - db
  13.  
  14. #Database
  15. db:
  16. image: postgres
  17. restart: unless-stopped
  18. environment:
  19. #User
  20. POSTGRES_USER: dnetcms
  21. #Database name
  22. POSTGRES_DB: DNetCMS
  23. #Password
  24. POSTGRES_PASSWORD: EhyZCF5Br
  25. #Data location
  26. #PGDATA: /tmp/postgres
  27.  
  28. volumes:
  29. - /home/wardef/postgres-data:/var/lib/postgresql/data
  30.  
  31. # ports:
  32. # - 2500:5432
  33.  
  34.  
  35. #Web host
  36. hots:
  37. image: nginx
  38. restart: always
  39.  
  40. #По хорошему надо бы свой образ, но так быстрее
  41. volumes:
  42. - ./nginx.conf:/etc/nginx/nginx.conf
  43.  
  44. ports:
  45. - 80:80
  46. - 443:443
  47. links:
  48. - dnetcms
Add Comment
Please, Sign In to add comment