Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Create portainer.yaml

che0one3b0d95d391af
diff --git a/templates/compose/portainer.yaml b/templates/compose/portainer.yaml
new file mode 100644
index 0000000000..e12cb21111
--- /dev/null
+++ b/templates/compose/portainer.yaml
@@ -0,0 +1,13 @@
+services:
+ portainer:
+ image: 'portainer/portainer-ce:alpine'
+ environment:
+ - SERVICE_FQDN_PORTAINER_9000
+ volumes:
+ - '/var/run/docker.sock:/var/run/docker.sock'
+ - 'portainer_data:/data'
+ healthcheck:
+ test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:9000/"]
+ interval: 20s
+ timeout: 20s
+ retries: 10