mirror of
https://github.com/Theodor-Springmann-Stiftung/server-package.git
synced 2025-10-29 17:25:31 +00:00
21 lines
468 B
YAML
21 lines
468 B
YAML
services:
|
|
portainer_agent:
|
|
# This is the image to use
|
|
image: portainer/agent
|
|
|
|
# This corresponds to --name portainer_agent
|
|
container_name: portainer_agent
|
|
|
|
# This corresponds to --restart=always
|
|
restart: always
|
|
|
|
# This corresponds to -p 9001:9001
|
|
ports:
|
|
- "9001:9001"
|
|
|
|
# This corresponds to the -v flags
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
|