Add docker_compose_portainer_ce_agent.yml
This commit is contained in:
parent
0406b911c2
commit
0d8045074b
1 changed files with 16 additions and 0 deletions
16
docker_compose_portainer_ce_agent.yml
Normal file
16
docker_compose_portainer_ce_agent.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
services:
|
||||||
|
agent:
|
||||||
|
ports:
|
||||||
|
- '9001:9001'
|
||||||
|
container_name: portainer_agent
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||||
|
- '/var/lib/docker/volumes:/var/lib/docker/volumes'
|
||||||
|
image: portainer/agent
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
name: my-main-net
|
||||||
|
external: true
|
Loading…
Reference in a new issue