Portainer docker compose
Create a docker-compose.yml file similar to this:
services: portainer: image: portainer/portainer-ce:latest container_name: portainer restart: unless-stopped security_opt: - no-new-privileges:true volumes: - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock:ro - ./portainer-data:/data ports: - 9000:9000
Bring up your stack by running
docker-compose up -d
Log in to the Admin UI
http://127.0.0.1:9000
Default Admin User:
Email: admin@example.com Password: changeme