homelab/roles/portainer/tasks/main.yml

13 lines
296 B
YAML
Raw Normal View History

2021-06-20 20:29:11 +00:00
- name: run container
docker_container:
name: 'portainer'
image: portainer/portainer-ce
networks:
2021-06-20 20:32:51 +00:00
- name: nginx-internal
2021-06-20 20:29:11 +00:00
- name: bridge
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "8000:8000"
- "9000:9000"
state: started