|
1 | | -## Portainer with docker-compose |
| 1 | +# Portainer Docker Stack |
2 | 2 |
|
3 | | -### Install notes |
| 3 | +This project provides a Docker Compose setup for running Portainer behind nginx and nginx-proxy. |
4 | 4 |
|
5 | | -- copy `scripts/.env.example` to `scripts/.env` and edit it to match your settings |
6 | | -- change other env variables to your needs |
7 | | -- if necessary modify `scripts/nginx/custom.conf` to match you `DOMAIN_HOST` |
8 | | -- run `sh scripts/start.sh` to start the project |
9 | | -- run `sh scripts/stop.sh` to stop the project |
10 | | -- run `sh scripts/build.sh` to build or rebuild the project |
11 | | -- run `sh scripts/restart.sh` to restarts container |
12 | | -- navigate to `DOMAIN_HOST` to see portainer info |
| 5 | +## Prerequisites |
13 | 6 |
|
14 | | -## Dependencies |
| 7 | +- Docker Engine & Docker Compose |
| 8 | +- Git |
| 9 | +- Linux or Windows WSL2 |
| 10 | +- A working nginx-proxy network (see [nginx-proxy setup](https://github.com/ionghitun/nginx-proxy)) |
15 | 11 |
|
16 | | -- `nginx-proxy` - https://github.com/ionghitun/nginx-proxy |
| 12 | +## Installation |
17 | 13 |
|
18 | | -_Happy Coding!_ |
| 14 | +1. **Clone the repository** |
| 15 | + ```bash |
| 16 | + git clone https://github.com/ionghitun/portainer.git |
| 17 | + cd portainer |
| 18 | + ``` |
| 19 | +2. **Copy and configure environment variables** |
| 20 | + ```bash |
| 21 | + cp scripts/.env.example scripts/.env |
| 22 | + # Edit other variables in scripts/.env as needed |
| 23 | + ``` |
| 24 | +3. **Update virtual host configuration** |
| 25 | + - Modify `scripts/nginx/custom.conf` to match your `DOMAIN_HOST`. |
| 26 | +4. **Start the project** |
| 27 | + ```bash |
| 28 | + sh scripts/start.sh |
| 29 | + ``` |
| 30 | +5. **Access Portainer** |
| 31 | + - Open your browser and navigate to your configured `DOMAIN_HOST` (e.g., https://portainer.dev.local). |
| 32 | + |
| 33 | +## Available scripts |
| 34 | + |
| 35 | +```bash |
| 36 | +./scripts/start.sh # Start the containers |
| 37 | +./scripts/down.sh # Stop the containers |
| 38 | +./scripts/build.sh # Build or rebuild the containers |
| 39 | +./scripts/restart.sh # Restart the containers |
| 40 | +``` |
| 41 | + |
| 42 | +## Troubleshooting |
| 43 | + |
| 44 | +- **Docker Issues**: For older versions you might want to remove `COMPOSE_BAKE` from `.env`. |
| 45 | +- **Docker Compose Issues**: Please update and ensure you can use `docker compose`, not old version `docker-compose` |
| 46 | + |
| 47 | +## License |
| 48 | + |
| 49 | +This project is licensed under the MIT License. See [LICENSE](LICENSE) for details. |
| 50 | + |
| 51 | +## Contributing |
| 52 | + |
| 53 | +Contributions are welcome! Please open issues or submit pull requests following the repository guidelines. |
| 54 | + |
| 55 | +_Happy Coding_ |
0 commit comments