foo
This commit is contained in:
parent
86b21ebf4b
commit
f289332637
5 changed files with 42 additions and 22 deletions
14
.drone.yml
Normal file
14
.drone.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: deploy to local-it.org
|
||||||
|
steps:
|
||||||
|
- name: deployment
|
||||||
|
image: decentral1se/stack-ssh-deploy:latest
|
||||||
|
settings:
|
||||||
|
stack: "lit-docs"
|
||||||
|
deploy_key:
|
||||||
|
from_secret: drone_deploy_key
|
||||||
|
host: "lit-lit"
|
||||||
|
user: "root"
|
||||||
|
environment:
|
||||||
|
DOMAIN: docs.local-it.org
|
2
.env.sample
Normal file
2
.env.sample
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
TYPE=docs
|
||||||
|
DOMAIN=docs.example.org
|
|
@ -3,7 +3,7 @@ version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: test:latest
|
image: mydocs:latest
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -18,9 +18,9 @@ services:
|
||||||
order: start-first
|
order: start-first
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.services.coop-cloud-mkdocs.loadbalancer.server.port=8000"
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000"
|
||||||
- "traefik.http.routers.coop-cloud-mkdocs.rule=Host(`docs.local-it.org`)"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||||
- "traefik.http.routers.coop-cloud-mkdocs.entrypoints=web"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
|
@ -17,4 +17,20 @@ abra deploy servername_wekan
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Login Button umbenennen: User -> Administration -> Layout -> Benutzerdefinierter Text der OIDC-Schaltfläche
|
Login Button umbenennen: User -> Administration -> Layout -> Benutzerdefinierter Text der OIDC-Schaltfläche
|
||||||
|
|
||||||
|
|
||||||
|
## Backup
|
||||||
|
|
||||||
|
### Wekan von einem Backup wiederherstellen
|
||||||
|
|
||||||
|
TODO restic stuff
|
||||||
|
|
||||||
|
```
|
||||||
|
docker context use old-server
|
||||||
|
docker exec wekan_db_1 bash -c "mongodump --archive=/tmp/wekan.archive"
|
||||||
|
docker cp wekan_db_1:dump/wekan-2021-12-03.archiv .
|
||||||
|
docker context use new-server
|
||||||
|
docker cp wekan-2021-12-03.archiv lit-board_db.1.yzvn5bhlr4vpval2kytazhgwr:/tmp/
|
||||||
|
docker exec lit-board_db.1 bash -c "mongorestore --drop --verbose --archive=/tmp/wekan.archive"
|
||||||
|
```
|
|
@ -46,8 +46,8 @@ Wir verwenden Traefik als Reverse-Proxy. Er erkennt automatisch Apps im Docker S
|
||||||
`git clone https://git.local-it.org/LIT/traefik ~/.abra/apps/traefik`
|
`git clone https://git.local-it.org/LIT/traefik ~/.abra/apps/traefik`
|
||||||
|
|
||||||
|
|
||||||
|
Docker Netzwerk erstellen
|
||||||
```
|
```
|
||||||
**TODO**: braucht man das oder macht das abra server init?:
|
|
||||||
docker network create -d overlay --scope swarm proxy
|
docker network create -d overlay --scope swarm proxy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -63,10 +63,7 @@ Du kannst den Status der Installation mit `abra app ps servername_traefik` über
|
||||||
|
|
||||||
## Apps
|
## Apps
|
||||||
|
|
||||||
Grundsätzlich können alle Apps verwendet werden, die von coop-cloud unterstützt werden, allerdings sind nicht alle Apps umbedingt vollständig integriert. Im folgenden stellen wir Apps vor, die bereits mit Single-Sign-On integriert und wir im Betrieb schon gute Erfahrungen mit gemacht haben.
|
Grundsätzlich können alle Apps verwendet werden, die von coop-cloud unterstützt werden, allerdings sind nicht alle Apps umbedingt vollständig integriert. Auf unserer Setie stellen wir Apps vor, die bereits mit Single-Sign-On integriert und wir im Betrieb schon gute Erfahrungen gemacht haben.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Backups
|
## Backups
|
||||||
|
@ -108,19 +105,10 @@ restic ls latest
|
||||||
|
|
||||||
# Prune Snapshots
|
# Prune Snapshots
|
||||||
restic forget --prune --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --keep-yearly 3
|
restic forget --prune --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --keep-yearly 3
|
||||||
|
|
||||||
|
# Restore
|
||||||
|
restic restore --include /backups/servername-appname_servicename -t destination_folder latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### Wekan
|
|
||||||
|
|
||||||
docker context use old-server
|
|
||||||
docker exec wekan_db_1 bash -c "mongodump --archive=/tmp/wekan.archive"
|
|
||||||
docker cp wekan_db_1:dump/wekan-2021-12-03.archiv .
|
|
||||||
docker context use new-server
|
|
||||||
docker cp wekan-2021-12-03.archiv lit-board_db.1.yzvn5bhlr4vpval2kytazhgwr:/tmp/
|
|
||||||
docker exec lit-board_db.1 bash -c "mongorestore --drop --verbose --archive=/tmp/wekan.archive"
|
|
||||||
|
|
||||||
|
|
||||||
--8<-- "includes/abbreviations.md"
|
--8<-- "includes/abbreviations.md"
|
Loading…
Reference in a new issue