go-bouquins/.ansible/deploy-draft.yml
Meutel 7923c86543
All checks were successful
continuous-integration/drone/push Build is passing
start container
2019-09-28 10:26:04 +02:00

26 lines
676 B
YAML

---
- hosts: docker
tasks:
- name: deploy draft
docker_container:
name: "bouquins_draft_{{ draft_name }}"
image: "reg.meutel.net/go-bouquins:{{ draft_name }}"
state: started
recreate: yes
labels:
traefik.enable: 'true'
traefik.port: '8080'
traefik.docker.network: 'proxybackend'
traefik.frontend.rule: "Host:{{ draft_name }}.bouquins.www.meutel.net"
networks:
- name: proxybackend
purge_networks: yes
volumes:
- bouquins_draft:/root/data
register: deploy_out
- debug:
msg: "{{ deploy_out.container }}"
# vim:ft=ansible: