2021-08-01 18:13:44 -04:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
agent:
|
|
|
|
container_name: portainer_agent
|
|
|
|
image: portainer/agent
|
|
|
|
env_file:
|
|
|
|
- port.env
|
2021-08-01 18:16:17 -04:00
|
|
|
# environment:
|
2021-08-01 18:13:44 -04:00
|
|
|
# value retrieved from port.env file
|
|
|
|
# AGENT_SECRET: "xxxxxxx"
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "9001:9001"
|
|
|
|
|