Skip to content

Portainer

Auto Documentation

Documentation Generated with Python on 2021-04-03

Default Variables

Tasks

main.yml

# Deploy Docker Images
- name: ensures caddy directory dir exists
  file:
    path: "{{ item }}"
    state: directory
    owner: "{{ main_user}}"
    group: "{{ main_group }}"
  loop:
    - "{{ docker_dir }}/portainer"

- name: Run tasks/other.yaml instead of 'main'
  include_role:
    name: caddy
    tasks_from: network

- name: Portainer Deployment
  docker_container:
    name: portainer
    image: portainer/portainer-ce
    restart_policy: always
    networks:
      - name: web
        aliases: portainer
    ports:
      - "8000:8000"
      - "{{ proxy.portainer.port }}:9000"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "{{ docker_dir }}/portainer:/data"