You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
568 B
YAML
20 lines
568 B
YAML
# docker-compose.yml
|
|
# Docker Hub: https://hub.docker.com/r/portainer/agent
|
|
# Documentation: https://docs.portainer.io/admin/environments/add/docker#connecting-via-the-portainer-agent
|
|
|
|
networks:
|
|
<NETWORK_NAME>:
|
|
external: true
|
|
|
|
services:
|
|
portainer-agent:
|
|
container_name: portainer-agent
|
|
image: portainer/agent:<VERSION_TAG>
|
|
networks:
|
|
- <NETWORK_NAME>
|
|
ports:
|
|
- "9001:9001" # Portainer Agent Port
|
|
restart: always
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes |