docker-compose.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. services:
  2. transfer-sh:
  3. container_name: transfer-sh
  4. image: dutchcoders/transfer.sh:latest-noroot
  5. command: "--provider local"
  6. restart: on-failure:3
  7. mem_limit: 200M
  8. volumes:
  9. - ./data/temp:/mnt/transfer-sh/temp:rw
  10. - ./data/files:/mnt/transfer-sh/files:rw
  11. - ./data/frontend:/mnt/transfer-sh/frontend:rw
  12. environment:
  13. HTTP_AUTH_USER: ${HTTP_AUTH_USER}
  14. HTTP_AUTH_PASS: ${HTTP_AUTH_PASS}
  15. TEMP_PATH: /mnt/transfer-sh/temp
  16. BASEDIR: /mnt/transfer-sh/files
  17. # WEB_PATH: /mnt/transfer-sh/frontend
  18. RANDOM_TOKEN_LENGTH: ${RANDOM_TOKEN_LENGTH}
  19. VIRTUAL_HOST: ${VIRTUAL_HOST}
  20. LETSENCRYPT_HOST: ${VIRTUAL_HOST}
  21. LETSENCRYPT_EMAIL: webmaster@${VIRTUAL_HOST}
  22. # IP_WHITELIST: 217.10.5.214,217.10.14.237
  23. PURGE_DAYS: ${PURGE_DAYS}
  24. PURGE_INTERVAL: ${PURGE_INTERVAL}
  25. networks:
  26. - reverse-proxy_default
  27. transfer-sh-in:
  28. container_name: transfer-sh-in
  29. image: dutchcoders/transfer.sh:latest-noroot
  30. command: "--provider local"
  31. restart: on-failure:3
  32. mem_limit: 200M
  33. volumes:
  34. - ./data/temp:/mnt/transfer-sh/temp:rw
  35. - ./data/files:/mnt/transfer-sh/files:rw
  36. - ./data/frontend:/mnt/transfer-sh/frontend:rw
  37. environment:
  38. # HTTP_AUTH_USER: ${HTTP_AUTH_USER}
  39. # HTTP_AUTH_PASS: ${HTTP_AUTH_PASS}
  40. TEMP_PATH: /mnt/transfer-sh/temp
  41. BASEDIR: /mnt/transfer-sh/files
  42. # WEB_PATH: /mnt/transfer-sh/frontend
  43. RANDOM_TOKEN_LENGTH: ${RANDOM_TOKEN_LENGTH}
  44. VIRTUAL_HOST: ${VIRTUAL_HOST_IN}
  45. LETSENCRYPT_HOST: ${VIRTUAL_HOST_IN}
  46. LETSENCRYPT_EMAIL: webmaster@${VIRTUAL_HOST_IN}
  47. IP_WHITELIST: ${IP_WHITELIST}
  48. networks:
  49. - reverse-proxy_default
  50. networks:
  51. reverse-proxy_default:
  52. external: true