mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-01-23 22:58:56 +01:00
38e065c218
The use of `/var/run` was deprecated by FHS 3.0 nine years ago, so it's time to finally get rid of it where possible. The canonical directory for run-time variable data is `/run` nowadaya,s with `/var/run` just being a symbolic link for backward compatibilty and to ease transition.
16 lines
350 B
YAML
16 lines
350 B
YAML
---
|
|
services:
|
|
app:
|
|
container_name: portainer-agent
|
|
deploy:
|
|
mode: global
|
|
image: docker.io/portainer/agent:latest
|
|
ports:
|
|
- 9001:9001
|
|
volumes:
|
|
- /run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
networks:
|
|
- portainer-agent_default
|
|
restart: unless-stopped
|