1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=Portainer [Service] Type=simple Restart=always RestartSec=3 Environment=BIND=:9000 Environment=TUNNEL_PORT=8000 ExecStart=/usr/bin/portainer --bind $BIND --tunnel-port $TUNNEL_PORT --data /var/lib/portainer --assets /usr/share/portainer [Install] WantedBy=multi-user.target