This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
mkdir -p /var/lib/docker/custom_container/portainer
mkdir -p /var/lib/docker/custom_container/portainer/certs
chmod 755 /var/lib/docker/custom_container/portainer
chmod 750 /var/lib/docker/custom_container/portainer/certs
cd /var/lib/docker/custom_container/portainer/certs
https://it-infrastructure.solutions/generating-some/
nano /var/lib/docker/custom_container/portainer/docker-compose.yml
version: '3'
services:
portainer:
image: portainer/portainer-ce:latest
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "/var/lib/docker/custom_container/portainer/portainer_data:/data"
- "/var/lib/docker/custom_container/portainer/certs:/certs"
restart: always
ports:
- "9000:9000"
- "9443:9443"
container_name: portainer
command:
- --ssl
- --sslcert
- /certs/cert.crt
- --sslkey
- /certs/cert.key
docker-compose up -d