fixed pip and added portainer agent

This commit is contained in:
2025-11-07 09:04:00 +01:00
parent bb4b26a578
commit 7b8834c5ae
5 changed files with 42 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
services:
portainer:
image: portainer/portainer-ce:latest
#command:
# -H unix:///var/run/docker.sock
# --sslcert /certs/docker01.crt
# --sslkey /certs/docker01.key
#command: --admin-password='$2y$05$PWN6rFJ1kFvMFFK6Ajg87.waThVouf66GSt.lTXv6eg9nLv1ztoza'
restart: always
privileged: true
ports:
- 9001:9000
- 9443:9443
volumes:
- /run/podman/podman.sock:/var/run/docker.sock
- "{{ portainer_data_path }}"/data:/data
- "{{ portainer_data_path }}"/logs:/logs
- "{{ portainer_data_path }}"/certs:/certs

View File

@@ -12,6 +12,14 @@ services:
volumes:
- "podman.sock:/var/run/docker.sock"
- "{{ portainer_data_path }}:/data"
- "{{ portainer_data_path }}"/logs:/logs
- "{{ portainer_data_path }}"/certs:/certs
restart: always
portainer-agent:
image: "{{ portainer_agent_image }}"
container_name: "{{ portainer_agent_name }}"
ports:
- "{{ portainer_agent_port }}:9001"
volumes:
- "podman.sock:/var/run/docker.sock"
- "{{ podman_data_mount_point }}:/var/lib/containers"
restart: always