infra(portainer): docker-compose neu erstellt
This commit is contained in:
@@ -6,10 +6,21 @@ services:
|
|||||||
container_name: bruchtal-portainer
|
container_name: bruchtal-portainer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "9000:9000" # Webinterface
|
- "9000:9000" # Webinterface
|
||||||
volumes:
|
volumes:
|
||||||
- /docker/Daten/portainer-data:/data:rw
|
- /docker/Daten/portainer-data:/data:rw
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:rw
|
depends_on:
|
||||||
|
- portainer_agent
|
||||||
|
|
||||||
user: "0:0" # root im Container, damit Key-Datei erstellt werden kann
|
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
|
||||||
Reference in New Issue
Block a user