fixed pip and added portainer agent
This commit is contained in:
18
roles/podman/templates/docker-compose.j2
Normal file
18
roles/podman/templates/docker-compose.j2
Normal 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user