Uploaded December 2023 | Updated November 2026, 3 hours ago
#SnipeIT #AssetManagement #Docker
*** Updated 08/05/2024
Full steps can be found at i12bretro.github.io/tutorials/0567.html
What is Snipe-IT?
Snipe-IT is a Free Open Source (FOSS) project built on Laravel. Snipe-IT was made for IT asset management, to enable IT departments to track who has which laptop, when it was purchased, which software licenses and accessories are available, and so on. - snipe-it.readme.io/docs
Installing Docker
01. Log into the Linux host
02. Run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Snipe-IT
01. Continue with the following commands in terminal to setup and run Snipe-IT
# create working directories
sudo mkdir ~/docker/snipeit/{config,data} -p && sudo mkdir ~/docker/mariadb -p
# create snipeit network
docker network create snipeit
# download the base configuration
sudo wget -O ~/docker/snipeit/.env raw.githubusercontent.com/snipe/snipe-it/master/.env.example
# generate an app_key
docker run --rm snipe/snipe-it
# edit the .env file
sudo nano ~/docker/snipeit/.env
02. Scroll through the .env file, making sure to comment out the mysql connection details and change the following fields as needed
# --------------------------------------------
# REQUIRED: BASIC APP SETTINGS
# --------------------------------------------
APP_ENV=production
APP_DEBUG=false
APP_KEY=≪%PASTED APP_KEY%≫
APP_URL='http://≪%DNSorIP%≫:8000'
APP_TIMEZONE='America/New_York'
APP_LOCALE=en
MAX_RESULTS=500
# --------------------------------------------
# REQUIRED: UPLOADED FILE STORAGE SETTINGS
# --------------------------------------------
PRIVATE_FILESYSTEM_DISK=local
PUBLIC_FILESYSTEM_DISK=local_public
# --------------------------------------------
# REQUIRED: DATABASE SETTINGS
# --------------------------------------------
DB_CONNECTION=mysql
DB_HOST=db
DB_DATABASE=snipe_it
DB_USERNAME=snipe_it_rw
DB_PASSWORD=Snip3-IT!
DB_PREFIX=null
# --------------------------------------------
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
# --------------------------------------------
MAIL_DRIVER=smtp
MAIL_HOST=smtp.i12bretro.local
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDR=snipe-it@i12bretro.local
MAIL_FROM_NAME='Snipe-IT'
MAIL_REPLYTO_ADDR=snipe-it@i12bretro.local
MAIL_REPLYTO_NAME='Snipe-IT'
MAIL_AUTO_EMBED_METHOD='attachment'
03. Press CTRL+O, Enter, CTRL+X to write the changes to .env
04. Continue with the following commands in terminal
# set owner of docker directory
sudo chown "$USER":"$USER" ~/docker -R
# set permissions on docker directory
sudo chmod g+rwx "$HOME/docker" -R
# run the mariadb docker container
docker run -d --name mariadb --network snipeit --network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=snipe_it_rw -e MYSQL_PASSWORD=Snip3-IT! -e MYSQL_DATABASE=snipe_it -v ~/docker/mariadb:/var/lib/mysql --restart=unless-stopped mariadb:latest
# run the snipeit container
docker run -d --name snipeit -p 8000:80 --network snipeit --env-file=$HOME/docker/snipeit/.env -v ~/docker/snipeit/data:/var/lib/snipeit -v ~/docker/snipeit/config:/config --restart=unless-stopped snipe/snipe-it:v5.1.7
Snipe-IT Web Installer
01. Open a web browser and navigate to http://DNSorIP:8000
02. Review the Pre-Flight Checks summary ≫ Click the Next: Create Database Tables button
....Full steps can be found on GitHub [link at the top]
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#SnipeIT #AssetManagement #Docker
*** Updated 08/05/2024
Full steps can be found at i12bretro.github.io/tutorials/0567.html
What is Snipe-IT?
Snipe-IT is a Free Open Source (FOSS) project built on Laravel. Snipe-IT was made for IT asset management, to enable IT departments to track who has which laptop, when it was purchased, which software licenses and accessories are available, and so on. - snipe-it.readme.io/docs
Installing Docker
01. Log into the Linux host
02. Run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Snipe-IT
01. Continue with the following commands in terminal to setup and run Snipe-IT
# create working directories
sudo mkdir ~/docker/snipeit/{config,data} -p && sudo mkdir ~/docker/mariadb -p
# create snipeit network
docker network create snipeit
# download the base configuration
sudo wget -O ~/docker/snipeit/.env raw.githubusercontent.com/snipe/snipe-it/master/.env.example
# generate an app_key
docker run --rm snipe/snipe-it
# edit the .env file
sudo nano ~/docker/snipeit/.env
02. Scroll through the .env file, making sure to comment out the mysql connection details and change the following fields as needed
# --------------------------------------------
# REQUIRED: BASIC APP SETTINGS
# --------------------------------------------
APP_ENV=production
APP_DEBUG=false
APP_KEY=≪%PASTED APP_KEY%≫
APP_URL='http://≪%DNSorIP%≫:8000'
APP_TIMEZONE='America/New_York'
APP_LOCALE=en
MAX_RESULTS=500
# --------------------------------------------
# REQUIRED: UPLOADED FILE STORAGE SETTINGS
# --------------------------------------------
PRIVATE_FILESYSTEM_DISK=local
PUBLIC_FILESYSTEM_DISK=local_public
# --------------------------------------------
# REQUIRED: DATABASE SETTINGS
# --------------------------------------------
DB_CONNECTION=mysql
DB_HOST=db
DB_DATABASE=snipe_it
DB_USERNAME=snipe_it_rw
DB_PASSWORD=Snip3-IT!
DB_PREFIX=null
# --------------------------------------------
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
# --------------------------------------------
MAIL_DRIVER=smtp
MAIL_HOST=smtp.i12bretro.local
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDR=snipe-it@i12bretro.local
MAIL_FROM_NAME='Snipe-IT'
MAIL_REPLYTO_ADDR=snipe-it@i12bretro.local
MAIL_REPLYTO_NAME='Snipe-IT'
MAIL_AUTO_EMBED_METHOD='attachment'
03. Press CTRL+O, Enter, CTRL+X to write the changes to .env
04. Continue with the following commands in terminal
# set owner of docker directory
sudo chown "$USER":"$USER" ~/docker -R
# set permissions on docker directory
sudo chmod g+rwx "$HOME/docker" -R
# run the mariadb docker container
docker run -d --name mariadb --network snipeit --network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=snipe_it_rw -e MYSQL_PASSWORD=Snip3-IT! -e MYSQL_DATABASE=snipe_it -v ~/docker/mariadb:/var/lib/mysql --restart=unless-stopped mariadb:latest
# run the snipeit container
docker run -d --name snipeit -p 8000:80 --network snipeit --env-file=$HOME/docker/snipeit/.env -v ~/docker/snipeit/data:/var/lib/snipeit -v ~/docker/snipeit/config:/config --restart=unless-stopped snipe/snipe-it:v5.1.7
Snipe-IT Web Installer
01. Open a web browser and navigate to http://DNSorIP:8000
02. Review the Pre-Flight Checks summary ≫ Click the Next: Create Database Tables button
....Full steps can be found on GitHub [link at the top]
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
![Run Easy!Appointments - Appointment Scheduler System - in Docker
#EasyAppointments #Scheduling #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0949.html
What is Easy!Appointments?
Easy!Appointments is a highly customizable web application that allows customers to book appointments with you via a sophisticated web interface. Moreover, it provides the ability to sync your data with Google Calendar so you can use them with other services. It is an open source project that you can download and install even for commercial use. Easy!Appointments will run smoothly with your existing website as it can be installed in a single folder of the server and of course share an existing database. - https://github.com/alextselegidis/easyappointments#about
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Easy!Appointments
01. Now that Docker is installed, run the following commands to setup the Easy!Appointments Docker container and run it
# create working directories
mkdir ~/docker/mariadb -p
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# create containers network
docker network create containers
# run the mariadb docker container
docker run -d name mariadb network containers network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=easy_appointments_rw -e MYSQL_PASSWORD=EasyAppo1ntm3nts! -e MYSQL_DATABASE=easy_appointments -v /home/$USER/docker/mariadb:/var/lib/mysql restart=unless-stopped mariadb:latest
# run the easy!appointments docker container
docker run -d name easy-appointments network containers -p 8089:80 -e DB_HOST=mariadb -e DB_NAME=easy_appointments -e DB_USERNAME=easy_appointments_rw -e DB_PASSWORD=EasyAppo1ntm3nts! restart=unless-stopped alextselegidis/easyappointments
Easy!Appointments Web Installer
01. Open a web browser and navigate to http://DNSorIP:8089
02. The Easy!Appointments Installation web installer should be load
03. Complete the Administrator and Company form fields ≫ Click Install Easy!Appointments
04. Welcome to Easy!Appointments
Documentation: https://hub.docker.com/r/alextselegidis/easyappointments
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run Easy!Appointments - Appointment Scheduler System - in Docker](https://i.ytimg.com/vi/FDdDQinpzq4/mqdefault.jpg)
![Run MkDocs - Read the Docs Alternative - in Docker
#MkDocs #Containers #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0986.html
What is MkDocs?
MkDocs is a fast, simple and downright gorgeous static site generator thats geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file. It is designed to be easy to use and can be extended with third-party themes, plugins, and Markdown extensions. - https://github.com/mkdocs/mkdocs
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates git curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running MkDocs
01. Now that Docker is installed, run the following commands to setup the MkDocs Docker container and run it
# create working directory
mkdir ~/docker/mkdocs
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/mkdocs
# run mkdocs container
docker run -d name=mkdocs -p 8000:8000 -v ~/docker/mkdocs/:/mkdocs restart=unless-stopped polinux/mkdocs
02. Open a web browser and navigate to http://DNSorIP:8000
03. Welcome to MkDocs running in Docker
Read the Docs Theme
01. Back in the terminal, continue with the following commands
# stop the container
docker stop mkdocs
# edit the mkdocs configuration file
sudo nano ~/docker/mkdocs/mkdocs.yml
02. Add the following line to mkdocs.yml
theme: readthedocs
03. Press CTRL+O, Enter, CTRL+X to write the changes
04. Run the following command to see the change
# restart the container
docker start mkdocs
05. Back in the web browser, refresh the mkdocs page
Source: https://www.mkdocs.org/getting-started/
Documentation: https://hub.docker.com/r/polinux/mkdocs
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run MkDocs - Read the Docs Alternative - in Docker](https://i.ytimg.com/vi/Fnx8w_uqyuM/mqdefault.jpg)
![Run Matomo - Google Analytics Alternative - in Docker
#Matomo #Analytics #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0279.html
What is Matomo?
Matomo is the leading Free/Libre open analytics platform. Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in! - https://github.com/matomo-org/matomo
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Matomo
01. Continue with the following commands in a terminal window
# create a working directory
mkdir ~/docker/matomo -p && mkdir ~/docker/mariadb -p
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/matomo
# run the mariadb docker container
docker run -d name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=matomo_rw -e MYSQL_PASSWORD=M4tom0! -e MYSQL_DATABASE=matomo -v ~/docker/mariadb:/var/lib/mysql -p 3306:3006 restart=unless-stopped mariadb:latest
# start the matomo container
docker run -d name matomo link mariadb -p 80:80 -v ~/docker/matomo:/var/www/html -e MATOMO_DATABASE_HOST=mariadb -e MATOMO_DATABASE_USERNAME=matomo_rw -e MATOMO_DATABASE_PASSWORD=M4tom0! -e MATOMO_DATABASE_DBNAME=matomo restart=unless-stopped matomo
02. Open a web browser and navigate to http://DNSorIP
03. Click Next at the Welcome screen
04. Scroll to the bottom of the System Check screen ≫ Click Next
05. Verify the Database Setup form ≫ Click Next
06. Click Next on the Creating the Tables page
07. Enter a Superuser login, password and email ≫ Click Next
08. Complete the form to setup the first site to start tracking analytics ≫ Click Next
09. Click Next then Continue to Matomo
10. Login with the Superuser username and password created earlier
11. Welcome to Matomo
Additional Information: https://matomo.org/
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run Matomo - Google Analytics Alternative - in Docker](https://i.ytimg.com/vi/FxFcRMVodDI/mqdefault.jpg)
![Running PHP Server Monitor in Docker
#PHP Server Monitor #Docker #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0558.html
What is PHP Server Monitor
PHP Server Monitor is a script that checks whether your websites and servers are up and running. It comes with a web based user interface where you can manage your services and websites, and you can manage users for each server with a mobile number and email address. - https://www.phpservermonitor.org/
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running PHP Server Monitor
01. Now that Docker is installed, run the following commands to setup the PHP Server Monitor Docker container and run it
# run the PHP Server Monitor docker container
# create working directories
mkdir /home/$USER/docker/mariadb -p
# set owner of working directories
sudo chown $USER:$USER /home/$USER/docker -R
# create phpServerMonitor network
docker network create phpServerMonitor
# run the php server monitor docker container
docker run -d name phpservermonitor network phpServerMonitor -p 8080:80 -e MYSQL_HOST=db -e MYSQL_USER=servermon_rw -e MYSQL_PASSWORD=Serv3rM0n! -e MYSQL_DATABASE=server_monitor -e MYSQL_DATABASE_PREFIX= -e TIME_ZONE=America/New_York -e PSM_REFRESH_RATE_SECONDS=60 -e PSM_AUTO_CONFIGURE=true -v /sessions restart=unless-stopped phpservermonitor/phpservermon:latest
# run the mariadb docker container
docker run -d name mariadb network phpServerMonitor network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=servermon_rw -e MYSQL_PASSWORD=Serv3rM0n! -e MYSQL_DATABASE=server_monitor -v /home/$USER/docker/mariadb:/var/lib/mysql restart=unless-stopped mariadb:latest
02. Open a web browser and navigate to http://DNSorIP:8080/install.php
03. The PHP Server Monitor setup screen should be displayed
04. Click the Lets Go button
05. Create an administrator account by entering a username, password and email address ≫ Click Install
06. After the installation completes click Go to your monitor
07. Login with the administator account created earlier
08. Welcome to PHP Server Monitor
Documentation: https://hub.docker.com/r/phpservermonitor/phpservermon
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running PHP Server Monitor in Docker](https://i.ytimg.com/vi/GOeDUQMrt8Q/mqdefault.jpg)

![Run Dashy Application Dashboard in Docker
#Dashy #Dashboard #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0992.html
What is Dashy?
[Dashy is] a self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more! - https://github.com/Lissy93/dashy
Installing Docker
01. Log into the Linux Docker host and run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Dashy
01. Continue with the following commands in a terminal window
# create working directories
mkdir ~/docker/dashy -p
# download default conf.yml
wget -O ~/docker/dashy/conf.yml https://raw.githubusercontent.com/Lissy93/dashy/refs/heads/master/user-data/conf.yml
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/dashy
# run the dashy docker image
docker run -d name dashy -p 8080:8080 -v ~/docker/dashy:/app/user-data restart=unless-stopped lissy93/dashy:latest
02. Open a web browser and navigate to http://DNSorIP:8080
03. Welcome to Dashy
Source: https://github.com/Lissy93/dashy?tab=readme-ov-file#getting-started-
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run Dashy Application Dashboard in Docker](https://i.ytimg.com/vi/GfuTdFSh1xc/mqdefault.jpg)
![Containerized Self-Hosted ACME Server with Step-CA in Docker
#ACME #StepCA #LetsEncrypt #SSL
Full steps can be found at https://i12bretro.github.io/tutorials/0749.html
What is Step-CA?
[Step-CA is] a private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH. - https://github.com/smallstep/certificates
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Step-CA Server
01. Continue with the following commands in a terminal window
# create a working directory
mkdir ~/docker/step-ca -p
# start the step-ca container
# change the INIT_NAME and DNS_NAMES variables as needed
docker run -d name=step-ca -v ~/docker/step-ca:/home/step -p 9000:9000 -e DOCKER_STEPCA_INIT_NAME=i12bretro Certificate Authority -e DOCKER_STEPCA_INIT_DNS_NAMES=$(hostname -f) smallstep/step-ca
# enable the acme provisioner
docker exec -it step-ca step ca provisioner add acme type ACME
# restart the step-ca container
docker restart step-ca
Automating Certificate Requests
01. Log into the server needing to request a certificate
02. Continue following commands in a terminal window
# if on a remote server from the docker host, copy the root-ca.crt file
scp ≪%user%≫@≪%dockerhostDNSorIP%≫:~/docker/step-ca/certs/root_ca.crt ~/root_ca.crt
# remove apt version of certbot if installed
sudo apt remove certbot -y
# install snapd
sudo apt install snapd -y
# install snap core and update
sudo snap install core; sudo snap refresh core
# install certbot snap
sudo snap install classic certbot
# create certbot symbolic link
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# request the certificate
sudo REQUESTS_CA_BUNDLE=~/root_ca.crt certbot certonly standalone -d ≪%host-DNS-name%≫ server https://≪%step-ca-docker-host%≫:9000/acme/acme/directory
03. When prompted, enter an email address and agree to the terms of service
04. Choose whether to share your email and receive emails from certbot
05. Certbot will output information regarding the location of the certificate files
Documentation: https://hub.docker.com/r/smallstep/step-ca
Sources: https://certbot.eff.org/instructions?ws=other&os=debianbuster
https://smallstep.com/docs/tutorials/acme-challenge/
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Containerized Self-Hosted ACME Server with Step-CA in Docker](https://i.ytimg.com/vi/Gksq9Tx92j0/mqdefault.jpg)

![i12bretro Plays the [Hated?] Video Background Music
#i12bretro #Guitar #Music
Full steps can be found at https://i12bretro.github.io/tutorials/0826.html
This is the surprisingly polarizing background music I use in my tutorial videos. I wrote this about five years ago and could never come up with a fitting melody, but I liked the mellow vibe, so I decided to use it in the background of my videos when I started the channel. I get quite a few comments from viewers liking the tune and many more of them hating it. The truth of it is, I live near an airport and without some kind of background music youd be able to hear airplanes flying over during my voiceovers. Or Id have to stop and start recording frequently to wait for the air traffic to clear. Making the voiceovers is already my least favorite part of the video creation process, so I dont want it to take any longer than it already does, so the background music is here to stay. Enjoy!
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro i12bretro Plays the [Hated?] Video Background Music](https://i.ytimg.com/vi/HQIvvBh0FaE/mqdefault.jpg)
![Running phpBB Bulletin Board/Forum in Docker on Ubuntu Server
#phpBB #BulletinBoard #Forum #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0455.html
Installing Docker
01. Log into the Linux host and run the following commands in a terminal window
# update software respositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# add docker apt repository
sudo add-apt-repository deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running phpBB Container
01. Continue with the following commands in a terminal window
# create working directories
mkdir /home/$USER/docker/phpBB -p && mkdir /home/$USER/docker/mariadb -p
# set owner of working directories
sudo chown $USER:$USER /home/$USER/docker -R
# create phpbbnet network
docker network create phpbbnet
# run the mariadb docker container
docker run name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=phpbb_rw -e MYSQL_PASSWORD=phpBBp@$$ -e MYSQL_DATABASE=phpbb -v /home/$USER/docker/mariadb:/var/lib/mysql network phpbbnet -d mariadb:latest
# run the phpbb docker container
docker run -d name phpBB -p 8080:8080 -e PHPBB_DATABASE_USER=phpbb_rw -e PHPBB_DATABASE_PASSWORD=phpBBp@$$ -e PHPBB_DATABASE_NAME=phpbb network phpbbnet bitnami/phpbb
02. Open a web browser and navigate to http://DNSorIP:8080
03. Welcome to phpBB running in a Docker container
04. Click the Login link in the top left corner
05. Login with username user and password bitnami
06. Click the Administration Control Panel link at the very bottom of the page
07. Re-authenticate with the user/bitnami credentials
08. Click Manager Users in the left navigation menu
09. Search for user
10. Scroll down and enter and confirm a new password
11. Click the Submit button
Source: https://hub.docker.com/r/bitnami/phpbb
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running phpBB Bulletin Board/Forum in Docker on Ubuntu Server](https://i.ytimg.com/vi/Hk24EM0uOmU/mqdefault.jpg)
![Quickly Deploy an Apache/PHP/MySQL Development Environment in Docker
#PHP #Development #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0862.html
Installing Docker
01. Log into the Linux host and run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Setting Up the Development Environment
01. Continue with the following commands in a terminal window
# create working directories
mkdir ~/docker/apache2/www/html -p && mkdir ~/docker/apache2/{conf,php,ext} -p && mkdir ~/docker/mariadb -p
# extract apache conf container
docker run rm php:apache tar -cC /etc/apache2 . | tar -xC ~/docker/apache2/conf
# extract php config from container
docker run rm php:apache tar -cC /usr/local/etc/php . | tar -xC ~/docker/apache2/php
# extract php extensions from container
docker run rm php:apache tar -cC /usr/local/lib/php/extensions . | tar -xC ~/docker/apache2/ext
# copy the production php.ini
cp ~/docker/apache2/php/php.ini-development ~/docker/apache2/php/php.ini
# enable mysqli php extension
sed -i s/;extension=mysqli/extension=mysqli/ ~/docker/apache2/php/php.ini
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# run the mariadb docker container
docker run -d name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -v ~/docker/mariadb:/var/lib/mysql -p 3306:3306 restart unless-stopped mariadb:latest
# run the php:apache container
docker run -d name www -v ~/docker/apache2/www:/var/www -v ~/docker/apache2/conf:/etc/apache2 -v ~/docker/apache2/php:/usr/local/etc/php -v ~/docker/apache2/ext:/usr/local/lib/php/extensions -p 8080:80 restart unless-stopped php:apache
# install the mysqli extension
docker exec -it www docker-php-ext-install mysqli
# restart the apache2 container
docker restart www
# create simple phpinfo page
echo -e ≪?phpntphpinfo();n?≫ ≫ ~/docker/apache2/www/html/phpinfo.php
02. Open a web browser and navigate to http://DNSorIP/phpinfo.php
Adding phpMyAdmin (optional)
01. Continue with the following commands in a terminal window
# download phpmyadmin
wget -O /tmp/phpmyadmin.tar.gz https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-english.tar.gz
# create phpmyadmin directory
mkdir ~/docker/apache2/www/html/phpmyadmin -p
# extract downloaded phpmyadmin archive
tar xf /tmp/phpmyadmin.tar.gz strip-components=1 -C ~/docker/apache2/www/html/phpmyadmin
# copy sample config file
cp ~/docker/apache2/www/html/phpmyadmin/config.sample.inc.php ~/docker/apache2/www/html/phpmyadmin/config.inc.php
# generate a random string
# copy the output string to the clipboard
openssl rand -base64 16
# edit phpmyadmin config
nano ~/docker/apache2/www/html/phpmyadmin/config.inc.php
02. Paste the generated string in the blowfish_secret value
03. Update the Server host from localhost to the Docker hosts DNS or IP
04. Press CTRL+O, Enter, CTRL+X to write the changes
05. In a new tab, navigate to http://DNSorIP/phpmyadmin
06. Login with the username root and the password r00tp@$$
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Quickly Deploy an Apache/PHP/MySQL Development Environment in Docker](https://i.ytimg.com/vi/I2YDZglS9dk/mqdefault.jpg)