Advertisement
Guest User

Untitled

a guest
Sep 27th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. version: '3'
  2. services:
  3. web:
  4. build: ./nextcloud/
  5. container_name: web
  6. volumes:
  7. - /mnt/data_disk/volumes/nextcloud/html/:/var/www/html
  8. #- /mnt/data_disk/volumes/nextcloud/custom_apps:/var/www/html/custom_apps
  9. #- /mnt/data_disk/volumes/nextcloud/config:/var/www/html/config
  10. #- /mnt/data_disk/volumes/nextcloud/data:/var/www/html/data
  11.  
  12. environment:
  13. - POSTGRES_DB=mynextcloud
  14. - POSTGRES_USER=pistacchio
  15. - POSTGRES_PASSWORD=dr0m3d4r10
  16. - POSTGRES_HOST=db
  17. networks:
  18. - internal
  19. depends_on:
  20. - db
  21. db:
  22. build: ./postgres/
  23. container_name: db
  24. restart: always
  25. volumes:
  26. - /mnt/data_disk/volumes/postgres/:/var/lib/postgresql/data
  27. networks:
  28. - internal
  29.  
  30. nginx:
  31. build: ./nginx/
  32. container_name: nginx
  33. volumes:
  34. - /mnt/data_disk/resources/nginx/cert.pem:/etc/nginx/conf.d/cert.pem
  35. - /mnt/data_disk/resources/nginx/cert.key:/etc/nginx/conf.d/cert.key
  36. ports:
  37. - 443:443
  38. - 80:80
  39. networks:
  40. - internal
  41. restart: on-failure
  42. depends_on:
  43. - web
  44. networks:
  45. internal:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement