26 lines
720 B
YAML
26 lines
720 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
portainer:
|
|
image: portainer/portainer-ce:latest
|
|
container_name: bruchtal-portainer
|
|
restart: unless-stopped
|
|
ports:
|
|
- "9000:9000" # Webinterface
|
|
volumes:
|
|
- /docker/Daten/portainer-data:/data:rw
|
|
- /etc/localtime:/etc/localtime:ro
|
|
depends_on:
|
|
- portainer_agent
|
|
|
|
portainer_agent:
|
|
image: portainer/agent:latest
|
|
container_name: bruchtal-portainer-agent
|
|
restart: unless-stopped
|
|
environment:
|
|
AGENT_CLUSTER_ADDR: tasks.portainer_agent
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:rw # nötig für Containersteuerung
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "9001:9001" # Agent Port |