docker-compose.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. #
  3. services:
  4. flask_zipfile_creator:
  5. build: ./flask_zipfile_creator
  6. container_name: flask_zipfile_creator
  7. # CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]
  8. command: flask run -h 0.0.0.0
  9. volumes:
  10. - ./flask_zipfile_creator:/flask
  11. - ./data/gallery:/var/www/gallery
  12. ports:
  13. - "5000:5000"
  14. # dns:
  15. # - "9.9.9.9"
  16. # restart: always
  17. lighttpd:
  18. image: springm/lighttpd-webdav:latest
  19. build: ./springm_lighttpd
  20. container_name: lighttp
  21. ports:
  22. - 3004:3004
  23. environment:
  24. - TZ=${TZ:-Europe/Berlin}
  25. - READWRITE=true
  26. - WHITELIST=192.168.2.24
  27. volumes:
  28. - ./config:/etc/lighttpd
  29. - ./data:/webdav
  30. depends_on:
  31. - flask_zipfile_creator
  32. restart: always
  33. # networks:
  34. # - proxy
  35. labels:
  36. - "traefik.enable=true"
  37. - "traefik.http.routers.lighttpd_dav.rule=Host(`webdav.hermes.markus-spring.info`)||Host(`web.hermes.markus-spring.info`)||Host(`share.hermes.markus-spring.info`)"
  38. - "traefik.http.routers.lighttpd_dav.entrypoints=websecure"
  39. - "traefik.http.routers.lighttpd_dav.tls=true"
  40. - "traefik.http.routers.lighttpd_dav.tls.certresolver=standard"
  41. - "traefik.http.services.lighttpd_dav.loadBalancer.server.port=3004"
  42. # networks:
  43. # proxy:
  44. # external: true