Skip to content

Instantly share code, notes, and snippets.

@euberdeveloper
Created October 17, 2023 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save euberdeveloper/1e95211350e332683da860448fca1455 to your computer and use it in GitHub Desktop.
Save euberdeveloper/1e95211350e332683da860448fca1455 to your computer and use it in GitHub Desktop.
A script to start portainer with SSL certificates
path_of_certs_folder="<INSERT_HERE>"
# note, if you want you can put 9000 for http
docker run -d -p 9443:9443 -p 8000:8000 \
--name portainer --restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
-v $path_of_certs_folder:/certs \
portainer/portainer-ce:latest \
--sslcert /certs/fullchain.pem \
--sslkey /certs/privkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment