Portainer
Alternatives to Portainer
Portainer Set Up
1
Write Docker Compose File
cd /home/<username> &&
mkdir -p docker-compose/portainer &&
cd docker-compose/portainer &&
vim docker-compose.ymlservices: # each item under services would be a container
portainer:
container_name: portainer
image: portainer/portainer-ce:sts
restart: always # what to do when the container crashes / exits
volumes: # where to mount the volumes into the container
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
ports: # what ports we want to publish
- 127.0.0.1:9443:9443
volumes: # docker volume create ...
portainer_data:
name: portainer_data
networks: # docker network create ...
default:
name: portainer_networkHow to deploy Docker Compose on Portainer?
Portainer UI





Last updated

