Created
October 17, 2023 19:58
-
-
Save euberdeveloper/1e95211350e332683da860448fca1455 to your computer and use it in GitHub Desktop.
A script to start portainer with SSL certificates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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