Skip to content

Instantly share code, notes, and snippets.

@Arturro43
Last active December 31, 2023 16:36
Show Gist options
  • Save Arturro43/5a7d05386c9be1cdf02e917c8f6a44f5 to your computer and use it in GitHub Desktop.
Save Arturro43/5a7d05386c9be1cdf02e917c8f6a44f5 to your computer and use it in GitHub Desktop.
Send instance [docker-compose]
version: "3"
services:
nginx-proxy:
container_name: nginx-proxy
image: 'jwilder/nginx-proxy:alpine'
restart: always
ports:
- 'UNUSEDPORT:80' #change this
- 'UNUSEDPORT:443' #change this
environment:
- DEFAULT_HOST=YOUR.DOMAIN.TLD #change this
- HSTS=off
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- proxy-certs:/etc/nginx/certs:ro
- proxy-vhost:/etc/nginx/vhost.d
- proxy-html:/usr/share/nginx/html
proxy-letsencrypt:
image: 'jrcs/letsencrypt-nginx-proxy-companion'
restart: always
environment:
- DEFAULT_EMAIL=YOUR@EMAIL.TLD #change this
- NGINX_PROXY_CONTAINER=nginx-proxy
- NGINX_DOCKER_GEN_CONTAINER=nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- proxy-certs:/etc/nginx/certs
- proxy-vhost:/etc/nginx/vhost.d
- proxy-html:/usr/share/nginx/html
send:
image: 'ghcr.io/xavion-lux/send:latest'
restart: always
ports:
- '1443:1443'
volumes:
- ./data/send:/send
environment:
- VIRTUAL_HOST=YOUR.DOMAIN.TLD #change this
- VIRTUAL_PORT=1443
- DHPARAM_GENERATION=false
- LETSENCRYPT_HOST=YOUR.DOMAIN.TLD #change this
- LETSENCRYPT_EMAIL=YOUR@EMAIL.TLD #change this
- NODE_ENV=development
- BASE_URL=YOUR.DOMAIN.TLD #change this
- PORT=1443
- FILE_DIR=/send
- EXPIRE_TIMES_SECONDS=60,360,3600,86400,604800,2592000,31536000 #change this to whatever you'd like (https://github.com/timvisee/send/blob/master/docs/docker.md#environment-variables)
- DEFAULT_EXPIRE_SECONDS=3600 #change this to whatever you'd like (https://github.com/timvisee/send/blob/master/docs/docker.md#environment-variables)
- MAX_EXPIRE_SECONDS=31536000 #change this to whatever you'd like (https://github.com/timvisee/send/blob/master/docs/docker.md#environment-variables)
- DOWNLOAD_COUNTS=10,1,2,5,10,15,25,50,100,150 #change this to whatever you'd like (https://github.com/timvisee/send/blob/master/docs/docker.md#environment-variables)
- MAX_DOWNLOADS=100 #change this to whatever you'd like (https://github.com/timvisee/send/blob/master/docs/docker.md#environment-variables)
- MAX_FILE_SIZE=1073741824 #change this to whatever you'd like (https://github.com/timvisee/send/blob/master/docs/docker.md#environment-variables)
volumes:
proxy-certs:
proxy-vhost:
proxy-html:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment