go-bouquins/.ansible/deploy-draft.yml

21 lines
559 B
YAML
Raw Normal View History

2019-09-15 14:55:25 +00:00
---
- 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:
2019-09-28 07:21:11 +00:00
- name: proxybackend
2019-09-27 15:53:32 +00:00
volumes:
- bouquins_draft:/root/data
2019-09-15 14:55:25 +00:00
# vim:ft=ansible: