Docker installation:
mkdir docker && cd docker
wget https://library.ahadiani.ca/install_docker_nproxyman.sh
chmod +x install_docker_nproxyman.sh
./install_docker_nproxyman.sh
After that please go forward by using the wizard related to your OS and needed packages like Docker CE, Docker compose, Nginx reverse proxy, Portainer, and so on …
And, if you are working on a server with Iran access internet, use the commands below to install Docker, Docker Compose, NginX proxy manager, and Portainer…
apt update && apt upgrade -y
apt install docker.io
apt install docker-compose
Now please first create an account on hub.docker.com and via the below command pls login via command line:
docker login -u “username”
For installing the Portainer use the below command:
docker volume create portainer_data
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
To bring up the Nginx proxy manager use the below commands:
mkdir docker -p && mkdir docker/nginxp -p && cd docker/nginxp && nano docker-compose.yml
Now pls paste the below YML content and save the file and exit out then pls run the below command:
version: '3.6'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
docker-compose up -d
Now if you go forward according to the related video on @milootech channel on Youtube which is the first video of my channel you can finalize the Portainer and Nginx proxy manager accordingly.