From 9d23e6045ad0d8e0267562f7e23e396e829fc271 Mon Sep 17 00:00:00 2001 From: timvisee Date: Thu, 9 Jul 2020 11:04:20 +0200 Subject: [PATCH] Add README and Docker compose file --- .env.example | 6 ++++++ README.md | 18 ++++++++++++++++++ docker-compose.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .env.example create mode 100644 README.md create mode 100644 docker-compose.yaml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..7e68587 --- /dev/null +++ b/.env.example @@ -0,0 +1,6 @@ +# Host to expose Send on +HOST=myhost + +# Configure these to enable automatic LetsEncrypt certificate generation +LETSENCRYPT_EMAIL=mail@example.org +LETSENCRYPT_HOST= diff --git a/README.md b/README.md new file mode 100644 index 0000000..4181080 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Firefox Send in Docker compose + +### Usage +- Install Docker with Docker compose +- Clone repository +- Run `cp .env.example .env` and configure it (see [example](#example-env)) +- Run `docker-compose up` +- Visit your domain + +### Example .env +```.env +# Host to expose Send on +HOST=myhost + +# Configure these to enable automatic LetsEncrypt certificate generation +LETSENCRYPT_EMAIL=mail@example.org +LETSENCRYPT_HOST= +``` diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..bf16193 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,45 @@ +version: "3" + +services: + proxy: + image: 'jwilder/nginx-proxy:alpine' + ports: + - '80:80' + - '443:443' + environment: + - DEFAULT_HOST=${HOST} + volumes: + - /var/run/docker.sock:/tmp/docker.sock:ro + - proxy-certs:/etc/nginx/certs + - proxy-vhost:/etc/nginx/vhost.d + - proxy-html:/usr/share/nginx/html + proxy-letsencrypt: + image: 'jrcs/letsencrypt-nginx-proxy-companion' + environment: + - DEFAULT_EMAIL=${LETSENCRYPT_EMAIL} + volumes: + - /var/run/docker.sock:/tmp/docker.sock:ro + - proxy-certs:/etc/nginx/certs + - proxy-vhost:/etc/nginx/vhost.d + - proxy-html:/usr/share/nginx/html + send: + image: 'mozilla/send:latest' + ports: + - '1234:1234' + environment: + - VIRTUAL_HOST=${HOST} + - VIRTUAL_PORT=1234 + - DHPARAM_GENERATION=false + - LETSENCRYPT_HOST + - PORT=1234 + - REDIS_HOST=redis + redis: + image: 'redis:alpine' + volumes: + - send-redis:/data + +volumes: + send-redis: + proxy-certs: + proxy-vhost: + proxy-html: