mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Add non-functional preliminary version of files to run a Consul- backed Swarm cluster on OpenStack using Heat.
24 lines
670 B
YAML
24 lines
670 B
YAML
heat_template_version: 2013-05-23
|
|
description: >
|
|
Heat template to deploy Docker containers to an existing Docker Swarm cluster
|
|
parameters:
|
|
swarm_endpoint:
|
|
type: string
|
|
label: First node IP address
|
|
description: IP address assigned to first Docker Swarm node
|
|
default: tcp://172.16.6.21:8333
|
|
resources:
|
|
nginx-01:
|
|
type: DockerInc::Docker::Container
|
|
properties:
|
|
image: nginx
|
|
docker_endpoint: { get_param: swarm_endpoint }
|
|
port_bindings:
|
|
80: 80
|
|
nginx-02:
|
|
type: DockerInc::Docker::Container
|
|
properties:
|
|
image: nginx
|
|
docker_endpoint: { get_param: swarm_endpoint }
|
|
port_bindings:
|
|
80: 80
|