initial commit
This commit is contained in:
parent
229f86d94b
commit
1e7341007a
@ -1 +1 @@
|
||||
# Sthope.dev examples and templates
|
||||
# Sthope.dev examples and templates
|
||||
|
@ -8,7 +8,7 @@
|
||||
## sudo chmod +x ~/bin/*;su -l $USER
|
||||
|
||||
#### USAGE
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope_website_examples/raw/branch/master/custom-cmds-in-ubuntu/bin_examples/createnewuserns)" go Username Password
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/custom-cmds-in-ubuntu/bin_examples/createnewuserns)" go Username Password
|
||||
# Type "createnewuserns USERNAME PASSWORD" it will create new user without asking all the questions
|
||||
|
||||
adduser ${0} --gecos "${0},69,69,69" --disabled-password
|
||||
|
@ -0,0 +1,8 @@
|
||||
mkdir -p /etc/systemd/system/docker.service.d/
|
||||
|
||||
cat << EOF > /etc/systemd/system/docker.service.d/startup_options.conf
|
||||
# /etc/systemd/system/docker.service.d/override.conf
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376
|
||||
EOF
|
@ -8,7 +8,7 @@
|
||||
## sudo chmod +x ~/bin/*;su -l $USER
|
||||
|
||||
#### USAGE
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope_website_examples/raw/branch/master/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser)" Username Password
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser)" Username Password
|
||||
#
|
||||
|
||||
apt-get update
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
Run on the terminal
|
||||
```
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/docker-compose/docker-compose.sh)"
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/docker-compose/docker-compose.sh)"
|
||||
```
|
||||
& (sudo user)
|
||||
```
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/docker-compose/config.sh)"
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/docker-compose/config.sh)"
|
||||
```
|
||||
|
||||
|
||||
|
@ -3,24 +3,24 @@
|
||||
|
||||
Download config env's
|
||||
```
|
||||
wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/msmtpd.env; wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/librenms.env
|
||||
wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/msmtpd.env; wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/librenms.env
|
||||
```
|
||||
|
||||
Download configs.env (edit with your configs)
|
||||
```
|
||||
wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/.env
|
||||
wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/.env
|
||||
```
|
||||
|
||||
Docker-Compose file
|
||||
```
|
||||
wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/docker-compose.yml
|
||||
wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/docker-compose.yml
|
||||
```
|
||||
|
||||
|
||||
All files
|
||||
```
|
||||
wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/msmtpd.env; \
|
||||
wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/librenms.env; \
|
||||
wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/.env; \
|
||||
wget -q https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/librenms/docker-compose.yml
|
||||
wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/msmtpd.env; \
|
||||
wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/librenms.env; \
|
||||
wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/.env; \
|
||||
wget -q https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/librenms/docker-compose.yml
|
||||
```
|
@ -5,17 +5,17 @@ Docker-compose stack with Portainer, VSCode, WatchTower
|
||||
|
||||
Install with 1 line cmd (running as sudo/root)
|
||||
```
|
||||
clear;bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/script/install_nosudo)"
|
||||
clear;bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/script/install_nosudo)"
|
||||
```
|
||||
|
||||
download docker-compose.yml with:
|
||||
```
|
||||
wget https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/docker-compose.yml
|
||||
wget https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/docker-compose.yml
|
||||
```
|
||||
|
||||
# Portainer Agent
|
||||
|
||||
```
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY
|
||||
```
|
||||
Replace `EDGE_ID` and `EDGE_KEY` with ones given by Portainer
|
@ -4,7 +4,7 @@
|
||||
###################################
|
||||
|
||||
#### USAGE
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY
|
||||
#
|
||||
|
||||
sudo docker run -d \
|
||||
|
@ -8,17 +8,17 @@
|
||||
## sudo chmod +x ~/bin/*;su -l $USER
|
||||
|
||||
#### USAGE
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/script/install_nosudo)"
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/script/install_nosudo)"
|
||||
#
|
||||
|
||||
apt-get update
|
||||
apt-get upgrade -y
|
||||
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/docker-compose/config.sh)"
|
||||
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/docker-compose/config.sh)"
|
||||
|
||||
mkdir -p /docker/portainer
|
||||
mkdir -p /docker/vscode
|
||||
|
||||
wget https://git.sthope.dev/sthope/docker_portainer_stacks/raw/branch/master/portainer/docker-compose.yml -P /docker/
|
||||
wget https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/docker-compose.yml -P /docker/
|
||||
|
||||
cd /test/;docker-compose up -d
|
Loading…
x
Reference in New Issue
Block a user