3103b46c3cfbc3dd25d87e09b0ce2f2eab593e64
portainer
Portainer CE stack, ready to deploy directly or through the gittea push-to-deploy CI.
Run it directly
docker compose up -d
Open https://localhost:9443 and create the admin user on first run (first visit wins — nobody can register afterwards).
Test it through Gitea (gittea CI)
- Create an empty repo in Gitea (e.g.
portainer,mainbranch). - If not done yet, add the webhook to the repo:
- URL:
http://deployer:9000/deploy - Secret:
WEBHOOK_SECRETfrom the gittea.env - Trigger: push events
- URL:
- Push this folder:
git remote add origin http://<gitea-host>:<port>/<user>/portainer.git
git push -u origin main
- The deployer clones the repo and runs
docker compose up -don every push that touches non-doc files. Watch it:docker logs -f gittea-deployer.
Notes
- Only the compose file is needed; no
deploy.shin the repo means the deployer uses plaindocker compose. - Port 9443 is configurable:
PORTAINER_HTTPS_PORT=9444 docker compose up -d. - Port 9000 is intentionally not published (deployer default port).
- Portainer manages the same Docker daemon the deployer uses — both mount
docker.sock(root-equivalent access).