marco-sciuto / owncloud-nginx-letsencrypt-docker

Docker compose and information to run ownCloud with an Nginx proxy and LetsEncrypt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

owncloud-nginx-letsencrypt-docker

This is a simple repo with information on the a docker-compose.yml to run ownCloud with an Nginx proxy and LetsEncrypt using Docker.

Information sources

This is consolidated based on information from the following places and thanks to them:

Get started

Set up the necessary environment variables at the command line (or equivalent method on the relevant operating system):

cat << EOF >| .env
LETSENCRYPT_EMAIL=info@your.domain.com
OWNCLOUD_VERSION=10.11
OWNCLOUD_DOMAIN=your.domain.com:8080
OWNCLOUD_TRUSTED_DOMAINS=your.domain.com
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=8080
EOF

The webserver is nginx-proxy and it will listen on ports 80 and 443 by default, redirecting traffic to HTTPS for your ownCloud instance. Make sure to have both port open on the firewall. The HTTP_PORT environment variable sets which port ownCloud itself will listen internally.

Then run

docker-compose up -d

You should then be able to access it at the domain name you entered and it will redirect to the https URL with a valid certificate.

About

Docker compose and information to run ownCloud with an Nginx proxy and LetsEncrypt

License:MIT License