docker_portainer/docker-compose.yml

26 lines
465 B
YAML

---
version: '3.2'
services:
portainer:
container_name: portainer
image: portainer/portainer-ce
env_file:
- port.env
# environment:
# value retrieved from port.env file
# AGENT_SECRET: "xxxxxxx"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - portainer_data:/data
- ./data:/data
restart: unless-stopped
ports:
- "8000:8000"
- "9000:9000"
volumes:
portainer_data:
# EOF