Meutel
e2f90ffb80
All checks were successful
continuous-integration/drone/push Build is passing
* log on startup * display on about page * use compile flag * set with git tag value
28 lines
739 B
YAML
28 lines
739 B
YAML
---
|
|
- hosts: docker
|
|
tasks:
|
|
- name: deploy draft
|
|
docker_container:
|
|
name: "bouquins_draft_{{ draft_name }}"
|
|
image: "reg.meutel.net/go-bouquins:{{ draft_name }}"
|
|
pull: yes
|
|
state: started
|
|
recreate: yes
|
|
labels:
|
|
traefik.enable: 'true'
|
|
traefik.port: '9000'
|
|
traefik.docker.network: 'proxybackend'
|
|
traefik.frontend.rule: "Host:{{ draft_name }}.bouquins.www.meutel.net"
|
|
traefik.frontend.entryPoints: http
|
|
networks:
|
|
- name: proxybackend
|
|
purge_networks: yes
|
|
volumes:
|
|
- bouquins_draft:/root/data
|
|
register: deploy_out
|
|
|
|
- debug:
|
|
msg: "{{ deploy_out.container }}"
|
|
|
|
# vim:ft=ansible:
|