Setup a reverse proxy
Description
In this guide, you will learn how to install and configure Nginx Proxy Manager using Docker.
Nginx Proxy Manager provides a web-based interface for managing reverse proxies and SSL certificates. The installation uses a dedicated Docker network so that other applications can communicate with the reverse proxy.
You can create subdomains like „palworld.yourdomain.com“, which redirects directly to your Palworld server.
We are using the Linux operating system Ubuntu 24.04.
What you’ll learn
Step by step guide
1
# Step 1: Configure the UFW2
ufw allow 443 comment 'HTTPS'3
ufw allow 81 comment 'NGINX-Admin-UI'4
ufw reload5
6
# Step 2: Create a docker network called "reverse-proxy-network" for all of your future applications7
docker network create reverse-proxy-network8
9
# Step 3: Create the folder for storing the applications config and data10
mkdir /srv/apps/nginx-proxy-manager -p11
12
# Step 4: Create the complete setup for the application13
cd /srv/apps/nginx-proxy-manager14
15
cat << 'EOF' > docker-compose.yml16
networks:17
reverse-proxy-network:18
external: true # network already exists19
20
services:21
app:22
image: 'jc21/nginx-proxy-manager:2.14.0'23
container_name: nginx-proxy-manager24
restart: unless-stopped25
networks:26
- reverse-proxy-network27
ports:28
- '80:80'29
- '81:81'30
- '443:443'31
volumes:32
- ./data:/data33
- ./letsencrypt:/etc/letsencrypt34
EOF35
36
# Step 5: Start the application37
cd /srv/apps/nginx-proxy-manager38
docker compose up -d39
40
# Step 6: Check if the application is running41
docker ps42
# And manually visiting "your.domain.com" / "your.domain.com:81" in your browser. 