docker-compose.nginx.yml 620 B

123456789101112131415161718192021
  1. version: '3'
  2. services:
  3. webdav:
  4. image: webdav-js-nginx
  5. build: docker/nginx
  6. ports:
  7. - 8080:80
  8. volumes:
  9. # main functionality
  10. - ./:/var/www/webdav-js
  11. # configs
  12. - ./examples/nginx/nginx.conf:/opt/nginx/conf/nginx.conf:ro
  13. - ./examples/nginx/webdav.conf:/etc/nginx/conf.d/webdav.conf:ro
  14. - ./examples/nginx/davindex-header.html:/var/www/davindex-header.html:ro
  15. - ./examples/nginx/davindex-footer.html:/var/www/davindex-footer.html:ro
  16. # demo content
  17. - ./dist/webdav.js:/var/www/html/source.js:ro
  18. - ./dist/webdav.css:/var/www/html/style.css:ro