From af2c070c4170718289aa5d55c3d3c27f46c2ac6b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 3 Jul 2026 15:19:55 +0530 Subject: Send docker setup --- .gitignore | 1 + docker-compose.yml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ setup.sh | 6 +++++ 3 files changed, 73 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100755 setup.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac4d88d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.ignore diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b935b5c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,66 @@ +services: + nginx-proxy: + container_name: nginx-proxy + image: 'jwilder/nginx-proxy:alpine' + restart: always + ports: + - '80:80' + - '443:443' + environment: + - DEFAULT_HOST=ediblemonad.dev + - 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=ediblemonad@gmail.com + - 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: 'registry.gitlab.com/timvisee/send:latest' + restart: always + ports: + - '1234:1234' + volumes: + - ./uploads:/uploads + environment: + - VIRTUAL_HOST=send.ediblemonad.dev + - VIRTUAL_PORT=1234 + - DHPARAM_GENERATION=false + - LETSENCRYPT_HOST=send.ediblemonad.dev + - LETSENCRYPT_EMAIL=ediblemonad@gmail.com + - NODE_ENV=production + - BASE_URL=https://send.ediblemonad.dev + - PORT=1234 + - REDIS_HOST=redis + - FILE_DIR=/uploads + # upload limits + - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000 + - DEFAULT_EXPIRE_SECONDS=86400 + - MAX_EXPIRE_SECONDS=31536000 + - MAX_DOWNLOADS=100 + - MAX_FILE_SIZE=1073741824 + + redis: + image: 'redis:alpine' + restart: always + volumes: + - redis:/data + +volumes: + redis: + proxy-certs: + proxy-vhost: + proxy-html: diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..6641234 --- /dev/null +++ b/setup.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +set -eu + +docker compose down >/dev/null +docker compose up -d -- cgit v1.3.1