mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-01-23 14:50:57 +01:00
22 lines
488 B
YAML
22 lines
488 B
YAML
version: '3'
|
|
|
|
networks:
|
|
portainer-agent_default:
|
|
driver: bridge
|
|
# (Optional) When setting up in swarm mode replace with
|
|
# driver: overlay
|
|
|
|
services:
|
|
app:
|
|
container_name: portainer-agent
|
|
deploy:
|
|
mode: global
|
|
image: 'portainer/agent:latest'
|
|
ports:
|
|
- '9001:9001'
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
networks:
|
|
- portainer-agent_default
|
|
restart: always |