Docker compose and information to run ownCloud with an Nginx proxy and LetsEncrypt
Go to file
2019-01-12 11:46:13 +00:00
docker-compose.yml First real commit 2019-01-12 11:43:59 +00:00
LICENSE Initial commit 2019-01-12 11:25:38 +00:00
README.md Last edit 2019-01-12 11:46:13 +00:00

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, as I was able to find anything that did everything I needed based on the official documentation from ownCloud and kept separate volumes for data.

Information sources

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

Get started

Pretty straightforward, follow these steps...

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

cat << EOF >| .env
OWNCLOUD_VERSION=10.0
OWNCLOUD_DOMAIN=localhost
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=80
EOF

Change the hostname variables above and in the docker-compose.yml file as necessary specifically the variables in the owncloud service environment block:

    environment:
      - VIRTUAL_HOST=local.local.info
      - VIRTUAL_PORT=8080
      - LETSENCRYPT_HOST=local.local.info
      - LETSENCRYPT_EMAIL=x@x.x

And then run docker compose up to get going.

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.