Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 1.35 KB

README.md

File metadata and controls

76 lines (53 loc) · 1.35 KB

Dockerized VDS

Auto configurable scripts bundle.

Scripts

  • vds_setup.sh: install and configure soft on just-created VDS.
  • app_setup.sh: install and configure dockerized application.

Usage

Connect to newly installed Ubuntu VDS via ssh.

Clone bundle.

apt update
apt install git -y
git clone [email protected]:acid23m/vds_docker.git
# or
#git clone https://github.com/acid23m/vds_docker.git
cd vds_docker

Edit settings.

cp -av .env.example .env
nano .env

VDS

Run vds_setup.sh.

./vds_setup.sh

It will:

  • upgrade system
  • install required soft (eg. openssl, curl ..) and helpfull soft (eg. mc)
  • create user defined in .env
  • configure ssh server
  • install and configure fail2ban
  • configure firewall
  • install docker and docker-compose
  • create self-signed certificates
  • install and configure nginx
  • install ACME shell script
  • install dockerized portainer

Reboot VDS.

reboot

Applications

Application must be compatible with base-docker. Application always use SSL.

Run app_setup.sh with parameters.

./app_setup.sh [email protected]:acid23m/base-docker-app.git base base-app.com 8000

Done!