# Owncloud Docker Stack Selfhost ## Prequisites 1- You must have installed [docker](https://docs.docker.com/engine/install/) and docker swarm enabled first before starting this tutorial 2- You should have full acces to configure domain name DNS. You can rent one on [namecheap](https://www.namecheap.com/) 3- You must have a machine with some resources to handle multiple users and quit enough disk storage 4- You must have a static IPV4 ## Installation steps ### Prepare docker-stack.yml Just clone this repo or just copy **docker-stack.yml** file into the directory you want to place this. Example: `/var/www/owncloud` ### Set up environment: .env Then create a .env file or copy **.env.example** but rename to **.env** in the same directory you have placed **docker-stack.yml** Now replace values: your domain name, strong passwords, etc... ### Deploy - If you have clonned the repo just do next steps, otherwise you have to create your own deploy script or to copy the same as it is in this repo. ```bash chmod +x ./deploy.sh ``` Then run deploy script ```bash ./deploy.sh ``` ## TODO - Replace .env file my .yml and docker config files