.
This commit is contained in:
29
documentation/setup-lxc.md
Normal file
29
documentation/setup-lxc.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# LXD
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
set variables required for setup
|
||||||
|
|
||||||
|
```bash
|
||||||
|
LXC_CONTAINER_NAME=samplename
|
||||||
|
```
|
||||||
|
|
||||||
|
then execute
|
||||||
|
|
||||||
|
```bash
|
||||||
|
## Create ubuntu container
|
||||||
|
lxc launch ubuntu $LXC_CONTAINER_NAME
|
||||||
|
|
||||||
|
## Setup container for docker
|
||||||
|
curl - "https://git.limbosolutions.com/kb/lxc/raw/branch/main/scripts/lxc-config-docker-requirements.sh" | bash $LXC_CONTAINER_NAME
|
||||||
|
|
||||||
|
|
||||||
|
## update container
|
||||||
|
lxc exec $LXC_CONTAINER_NAME bash -c "apt update -y && apt upgrade -y"
|
||||||
|
|
||||||
|
## Install fuse and docker on lxc container
|
||||||
|
lxc exec $LXC_CONTAINER_NAME bash -c "curl -s \"https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/ubuntu-fuse-setup.sh\" | bash "
|
||||||
|
|
||||||
|
#install Portainer
|
||||||
|
lxc exec $LXC_CONTAINER_NAME bash -c "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash "
|
||||||
|
```
|
||||||
@@ -2,57 +2,32 @@
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Enviroment variables
|
- Docker
|
||||||
|
|
||||||
```bash
|
_Currently hosted on an ubuntu lxc container with docker and portainer [+ information](setup-lxc.md)._
|
||||||
LXC_CONTAINER_NAME=?????
|
|
||||||
LXC_PROFILE=?????
|
|
||||||
```
|
|
||||||
|
|
||||||
## LXC Setup
|
## /Services (Stacks)
|
||||||
|
|
||||||
### Web setup
|
### Gitea
|
||||||
|
|
||||||
``` bash
|
[Docker Compose](../docker/docker-compose.yaml)
|
||||||
curl - "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com/raw/branch/main/scripts/web-setup.sh" | bash
|
|
||||||
```
|
|
||||||
|
|
||||||
Or you can manual clone the repository and execute
|
### Duplicati
|
||||||
|
|
||||||
### From Repository
|
- [Docker File](https://git.limbosolutions.com/kb/duplicati/docker/sqlclient.dockerfile)
|
||||||
|
- [Docker Compose](../docker/docker-compose.yaml)
|
||||||
``` bash
|
|
||||||
cd ~/
|
|
||||||
git clone "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com"
|
|
||||||
cd git.limbosolutions.com
|
|
||||||
chmod +x git.limbosolutions.com/scripts/setup.sh
|
|
||||||
./git.limbosolutions.com/scripts/setup.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## Setup Services
|
|
||||||
|
|
||||||
1) Enter portainer (default port 9443)
|
|
||||||
2) Setup Credentials
|
|
||||||
3) Setup Custom Docker Images
|
|
||||||
- Duplicati with SqlClient
|
|
||||||
- Image Name : duplicati-sqlclient:latest
|
|
||||||
- [Docker File](https://git.limbosolutions.com/kb/duplicati/docker/sqlclient.dockerfile)
|
|
||||||
4) Create Stacks:
|
|
||||||
- [git.limbosolutions.com](../docker/docker-compose.yaml)
|
|
||||||
- requirements:
|
|
||||||
- Duplicati with sqlClient
|
|
||||||
|
|
||||||
### Restore
|
### Restore
|
||||||
|
|
||||||
1) Execute Setup process
|
1) Execute Setup process
|
||||||
2)Check Every Container is ok and running
|
1) Check Every Container is ok and running
|
||||||
3)Stop Every Container (including portainer, if restoring portainer is a requirement) except duplicati
|
1) Stop Every Container (including portainer, if restoring portainer is a requirement) except duplicati
|
||||||
4)Enter Duplicati
|
1) Enter Duplicati
|
||||||
5)Import Backjob (if possible, if not possible next steps must be adapted)
|
1) Import Backjob (if possible, if not possible next steps must be adapted)
|
||||||
- All Imported jobs schedules must be disabled (or disable write permissions on backup host)
|
- All Imported jobs schedules must be disabled (or disable write permissions on backup host)
|
||||||
6)Restore all files to original location
|
1) Restore all files to original location
|
||||||
- If database engine is diferent do not restore db_data and check restore database before next steps
|
- If database engine is diferent do not restore db_data and check restore database before next steps
|
||||||
7)Start Container and check if everything is ok
|
1) Start Container and check if everything is ok
|
||||||
|
|
||||||
#### Database
|
#### Database
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user