Last active
August 29, 2015 14:22
-
-
Save banyanleaf/b0d41037d2734b59497c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set registryname = 'redacted' %} | |
{% set containername = 'redacted' %} | |
{% set applicationparent = 'redacted' %} | |
{% set tag = 'latest' %} | |
{% set i_root = '/opt/redacted' %} | |
{% set hostport1 = '53' %} | |
{% set hostport1_proto = 'tcp' %} | |
{% set hostport2 = '53' %} | |
{% set hostport2_proto = 'udp' %} | |
include: | |
- docker | |
{{ containername }}-image: | |
docker.pulled: | |
- name: {{ registryname }}/{{ containername }} | |
{{ containername }}-container: | |
docker.installed: | |
- name: {{ containername }} | |
- hostname: {{ containername }} | |
- image: {{ registryname }}/{{ containername }} | |
- tag: {{ tag }} | |
- require: | |
- docker: {{ containername }}-image | |
{{ containername }}: | |
docker.running: | |
- container: {{ containername }} | |
- image: {{ registryname }}/{{ containername }} | |
- ports: | |
"{{ hostport1 }}/{{ hostport1_proto }}": | |
HostIp: "" | |
HostPort: "{{ hostport1 }}" | |
"{{ hostport2 }}/{{ hostport2_proto }}": | |
HostIp: "" | |
HostPort: "{{ hostport2 }}" | |
- require: | |
- docker: {{ containername }}-container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment