mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-04 22:32:48 +01:00
26 lines
526 B
YAML
26 lines
526 B
YAML
|
---
|
||
|
- hosts: all
|
||
|
|
||
|
tasks:
|
||
|
|
||
|
# Create Portainer Volume
|
||
|
# --
|
||
|
#
|
||
|
- name: Create new Volume
|
||
|
community.docker.docker_volume:
|
||
|
name: portainer_data
|
||
|
|
||
|
# Deploy Portainer
|
||
|
# --
|
||
|
#
|
||
|
- name: Deploy Portainer
|
||
|
community.docker.docker_container:
|
||
|
container_name: portainer
|
||
|
image: "docker.io/portainer/portainer-ce"
|
||
|
ports:
|
||
|
- "8000:8000"
|
||
|
- "9000:9000"
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
- portainer_data:/data
|
||
|
restart_policy: always
|