go-bouquins/.ansible/deploy-draft.yml
Meutel 814a6eae45
Some checks failed
continuous-integration/drone/push Build is failing
fix ansible container network
2019-09-28 09:21:11 +02:00

21 lines
559 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
volumes:
- bouquins_draft:/root/data
# vim:ft=ansible: