Day 9: Nginx Proxy Manager
Start server
NGINX_ROOT=/ssd/nginx_data
cat < docker-compose.yaml <<EOF
services:
nginx:
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ${NGINX_ROOT}/nginx_data:/data
- ${NGINX_ROOT}/letsencrypt:/etc/letsencrypt
EOF
docker compose up -d
Port Forwarding
Configure the router to forward port 80 and 443 to the Raspberry pi.
DNS
You can register from DNS from
DuckDNS
Setup Revert Proxy
The job is running, now you can login from the browser, http://raspberrypi.local:81 using
```
username: admin@example.com
password: changeme
```
Next: Day 10