diff --git a/docs/ocis/deployment/ocis_traefik.md b/docs/ocis/deployment/ocis_traefik.md index 5bf8470d0d..dcb77e3863 100644 --- a/docs/ocis/deployment/ocis_traefik.md +++ b/docs/ocis/deployment/ocis_traefik.md @@ -33,6 +33,27 @@ ocis running on a hcloud node behind traefik as reverse proxy * Make docker-compose executable `$ sudo chmod +x /usr/local/bin/docker-compose` * Environment variables for OCIS Stack are provided by .env file +### Setup on server + +- Clone ocis repository + + ```git clone https://github.com/owncloud/ocis.git``` + +- Copy example folder to /opt + ```cp deployment/examples/ocis_traefik /opt/``` + +- Overwrite OCIS_DOMAIN in .env with your.domain.com + ```sed -i 's/ocis.domain.com/your.domain.com/g' /opt/ocis_traefik/.env``` + +- Overwrite redirect uri with your.domain.com in identifier-registration.yml + ```sed -i 's/ocis.domain.com/your.domain.com/g' /opt/ocis_traefik/config/identifier-registration.yml``` + +- Change into deployment folder + ```cd /opt/ocis_traefik``` + +- Start application stack + ```docker-compose up -d``` + ### Stack The application stack contains two containers. The first one is a traefik proxy which is terminating ssl and forwards the requests to the internal docker network. Additional, traefik is creating a certificate that is stored in `acme.json` in the folder `letsencrypt` inside the users home directory. The second one is th ocis server which is exposing the webservice on port 9200 to traefic.