This project provides a Docker Compose setup for running Portainer behind nginx and nginx-proxy.
- Docker Engine & Docker Compose
- Git
- Linux or Windows WSL2
- A working nginx-proxy network (see nginx-proxy setup)
- Clone the repository
git clone https://github.com/ionghitun/portainer.git cd portainer
- Copy and configure environment variables
cp scripts/.env.example scripts/.env # Edit other variables in scripts/.env as needed
- Update virtual host configuration
- Modify
scripts/nginx/custom.conf
to match yourDOMAIN_HOST
.
- Modify
- Start the project
sh scripts/start.sh
- Access Portainer
- Open your browser and navigate to your configured
DOMAIN_HOST
(e.g., https://portainer.dev.local).
- Open your browser and navigate to your configured
./scripts/start.sh # Start the containers
./scripts/down.sh # Stop the containers
./scripts/build.sh # Build or rebuild the containers
./scripts/restart.sh # Restart the containers
- Docker Issues: For older versions you might want to remove
COMPOSE_BAKE
from.env
. - Docker Compose Issues: Please update and ensure you can use
docker compose
, not old versiondocker-compose
This project is licensed under the MIT License. See LICENSE for details.
Contributions are welcome! Please open issues or submit pull requests following the repository guidelines.
Happy Coding