This is an old revision of the document!
<code yaml docker-compose.yml> version: “2.1” services:
portainer:
image: portainer/portainer-ce
container_name: portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer_data:/data
ports:
- 8000:8000
- 9000:9000
restart: always