Adds setup on server to ocis_traefik docs

This commit is contained in:
Jan Müller
2020-10-21 15:59:24 +03:00
parent 95cbf66a44
commit daedd7d5ff

View File

@@ -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.