mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 08:27:19 +00:00
23 lines
509 B
YAML
23 lines
509 B
YAML
|
---
|
||
|
- name: Create Portainer Directories
|
||
|
file:
|
||
|
path: "{{ item }}"
|
||
|
state: directory
|
||
|
with_items:
|
||
|
- "{{ portainer_data_directory }}"
|
||
|
|
||
|
- name: Portainer Docker Container
|
||
|
docker_container:
|
||
|
name: portainer
|
||
|
image: portainer/portainer
|
||
|
pull: true
|
||
|
volumes:
|
||
|
- "{{ portainer_data_directory }}:/data:rw"
|
||
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||
|
- "/etc/timezone:/etc/timezone:ro"
|
||
|
ports:
|
||
|
- "9000:9000"
|
||
|
restart_policy: unless-stopped
|
||
|
memory: 1g
|
||
|
|