homelab/roles/traefik/tasks/main.yml
Kris Lamoureux f04f3acc58
Changed to label based config
Removed traefik.yml in favor of label based configuration and
changed hosts to moxietest
2019-12-06 20:59:55 -05:00

13 lines
368 B
YAML

- name: Start Traefik container
docker_container:
name: "{{ traefik_name }}"
image: traefik:{{ traefik_version }}
command: --api.insecure=true --providers.docker
state: started
restart_policy: always
ports:
- "{{ traefik_port }}:80"
- "{{ traefik_admin_port }}:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock