mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 20:29:54 -06:00
Adds setup on server to ocis_traefik docs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user