File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ shiva_port: 3000
109109# swarm
110110swarm_master_port : 2375
111111swarm_host_address : " {{ hostvars[groups['swarm-manager'][0]]['ansible_default_ipv4']['address'] }}"
112+ swarm_container_name : swarm
112113
113114# navi/link
114115navi_mongo_database : navi
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ container_envs: >
2727 -e CONSUL_HOST={{ consul_host_address }}
2828 -e CONSUL_PORT={{ consul_api_port }}
2929 -e DOCKER_CERT_PATH=/etc/ssl/docker
30+ -e SWARM_CONTAINER_NAME={{ swarm_container_name }}
3031
3132container_run_opts : >
3233 -h {{ name }}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ container_tag: 1.0.0
88log_driver : json-file
99
1010container_run_opts : >
11- --name swarm
11+ --name {{ swarm_container_name }}
1212 -d
1313
1414container_run_args : >
You can’t perform that action at this time.
0 commit comments