Update 'documentation/setup.md'
This commit is contained in:
@@ -1,51 +1,19 @@
|
||||
# Setup
|
||||
|
||||
## Host LXC Container
|
||||
|
||||
``` bash
|
||||
#set vars
|
||||
containername=gitsrv01
|
||||
```
|
||||
|
||||
### Create Container
|
||||
|
||||
```bash
|
||||
lxc launch ubuntu $containername -p enxd0374555c1f8_macvlan && \
|
||||
lxc config set $containername "security.nesting" "true" && \
|
||||
lxc exec $containername -- bash -c "apt update -y && apt upgrade -y && apt install --yes fuse-overlayfs" && \
|
||||
lxc exec $containername -- bash -c "cd ~/ && curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh" && \
|
||||
|
||||
git clone https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com
|
||||
cd git.limbosolutions.com
|
||||
chmod +x /scripts
|
||||
./scripts/setup-lxc.sh
|
||||
```
|
||||
Setup using portainer [docker compose](docker/docker-compose.yaml).
|
||||
|
||||
For more information:
|
||||
|
||||
- [LXC/Docker](/kb/lxc/documentation/running-docker.md)
|
||||
|
||||
#### Portainer
|
||||
|
||||
##### Create
|
||||
|
||||
```bash
|
||||
lxc exec $containername -- bash -c "docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest" && \
|
||||
lxc exec $containername -- bash -c "docker container list"
|
||||
```
|
||||
|
||||
##### Remove
|
||||
# Remove
|
||||
|
||||
```bash
|
||||
lxc exec $containername -- bash -c "docker rm portainer --force"
|
||||
```
|
||||
|
||||
For more information:
|
||||
|
||||
- [Install Portainer](/kb/portainer/)
|
||||
|
||||
### Remove
|
||||
|
||||
```bash
|
||||
lxc rm $containername --force
|
||||
```
|
||||
|
||||
## Setup Gitea
|
||||
|
||||
Setup using [docker compose](docker/docker-compose.yaml).
|
||||
|
||||
Reference in New Issue
Block a user