go-bouquins/.ansible/deploy-draft.yml
Meutel 29abd3382c
Some checks are pending
continuous-integration/drone/push Build is pending
WIP: ansible deploy branch
2019-09-15 16:55:25 +02:00

22 lines
566 B
YAML

---
- hosts: docker
tasks:
- name: deploy draft
docker_container:
name: "bouquins_draft_{{ draft_name }}"
image: "reg.meutel.net/go-bouquins:{{ draft_name }}"
state: present
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
# TODO volumes
volumes_from:
- mydata
# vim:ft=ansible: