User Tools

Site Tools


creating_docker-compose_applications

This is an old revision of the document!


Steps for Setting up a Docker and Docker-Compose Environment Using Portainer & Nginx Reverse Proxy

Docker Compose + Portainer + Nginx Proxy Manager + your own domain

This guide uses Nginx Proxy Manager (NPM), which is Nginx with a web UI and automatic Let's Encrypt certificates. It's the fastest route to HTTPS subdomains.

1. Prerequisites

  • A Linux server (Ubuntu/Debian VM, VPS, or homelab box) with a static LAN IP or public IP
  • A domain you control (examples below use example.com)
  • Router port forwarding TCP 80 and 443 to the server (not needed on a VPS)
  • A firewall that allows 22, 80, 443 traffic

2. Install Docker

curl -fsSL https://get.docker.com | sh sudo usermod -aG docker $USER newgrp docker docker compose version # confirm Compose v2 is present

3. Install Portainer

docker volume create portainer_data docker run -d –name portainer –restart=always \ -p 9443:9443 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v portainer_data:/data \ portainer/portainer-ce:latest

creating_docker-compose_applications.1791061327.txt.gz · Last modified: by admin