Fast Easy Install Docker Nginx proxy manager Ubuntu 20 #2827
Replies: 2 comments
-
i am trying to paste the info like it shows here: #2817 (comment) but keeps coming out messed up. Copy the docker-compose contents from the link in this comment if you find that easier. |
Beta Was this translation helpful? Give feedback.
-
Add admin SSL for the admin login URL. After this i also enabled force SSL but did not change the above settings, it shows as http not https in the settings but the admin login url redirects to ssl no issues all working nicely. If you mess up remember you can always login using the IP: http://YOUR-IP:81 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Install docker and docker-compose on a fresh ubuntu LInux OS install on any server:
Step 1. Installing Docker
Update your existing packages:
sudo apt update
Install a prerequisite packages which let apt utilize HTTPS:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Add GPG key for the official Docker repo to the Ubuntu system:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add the Docker repo to APT sources:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
Update the database with the Docker packages from the added repo:
sudo apt update
Install Docker software:
sudo apt install docker-ce
Docker should now be installed, the daemon started, and the process enabled to start on boot. To verify:
sudo systemctl status docker
NOTE: To avoid using sudo for docker activities, add your username to the Docker Group
sudo usermod -aG docker ${USER}
Step 2. Installing docker-compose
Note - using a non-root user perform the following.
Docker Compose is a tool that allows you to run container environments based on definitions set in a YAML file. Installing NetFoundry software into containers using this method is the simplest way to get started quickly.
Confirm the latest version available in their releases page. At the time of this writing, the most current stable version is 1.28.5.
The command below will download the 1.28.5 release and save the executable at /usr/local/bin/docker-compose, which will make this software globally accessible as docker-compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Set permissions so that the docker-compose command is executable:
sudo chmod +x /usr/local/bin/docker-compose
Verify that the installation was successful by viewing version information:
docker-compose --version
docker-compose version 1.28.5, build c4eb3a1f
Step 3. Installing nginx proxy manager using docker-compose
nano docker-compose.yml
File contents:
version: '3.8'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
These ports are in format :
Add any other Stream port you want to expose
- '21:21' # FTP
environment:
Mysql/Maria connection parameters:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "SecurePasswordHere'"
DB_MYSQL_NAME: "npm"
Uncomment this if IPv6 is not enabled on your host
DISABLE_IPV6: 'true'
volumes:
depends_on:
db:
image: 'jc21/mariadb-aria:latest'
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: 'SecurePasswordHere'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'SecurePasswordHere'
volumes:
Then do: docker-compose up -d
upgrading:
docker-compose pull
docker-compose up -d
Default admin login:
http://your-ip:81/ or http://your-ip
u:
admin@example.com
p:
changeme
Docker install Ref:
https://support.netfoundry.io/hc/en-us/articles/360057865692-Installing-Docker-and-docker-compose-for-Ubuntu-20-04
This is basically for myself but others will find it useful i would imagine.
Beta Was this translation helpful? Give feedback.
All reactions