Run portainer without haproxy.
This commit is contained in:
parent
39ef08f345
commit
a8e4d547b3
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"ansible.python.interpreterPath": "/opt/local/bin/python3.10"
|
||||||
|
}
|
|
@ -1,21 +1,17 @@
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
|
role_name: docker_swarm
|
||||||
|
namespace: adellam
|
||||||
author: Andrea Dell'Amico
|
author: Andrea Dell'Amico
|
||||||
description: Systems Architect
|
description: Role that configures a Docker Swarm cluster
|
||||||
company: ISTI-CNR
|
company: ISTI-CNR
|
||||||
|
|
||||||
issue_tracker_url: https://redmine-s2i2s.isti.cnr.it/projects/provisioning
|
|
||||||
|
|
||||||
license: EUPL 1.2+
|
license: EUPL 1.2+
|
||||||
|
min_ansible_version: "2.9"
|
||||||
min_ansible_version: 2.8
|
|
||||||
|
|
||||||
# To view available platforms and versions (or releases), visit:
|
|
||||||
# https://galaxy.ansible.com/api/v1/platforms/
|
|
||||||
#
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Ubuntu
|
- name: Ubuntu
|
||||||
versions:
|
versions:
|
||||||
- bionic
|
- bionic
|
||||||
|
- focal
|
||||||
|
- jammy
|
||||||
|
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- docker
|
- docker
|
||||||
|
|
|
@ -13,8 +13,11 @@ volumes:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
{% if docker_swarm_cluster_haproxy_install %}
|
||||||
|
|
||||||
{{ haproxy_docker_overlay_network }}:
|
{{ haproxy_docker_overlay_network }}:
|
||||||
external: true
|
external: true
|
||||||
|
{% endif %}
|
||||||
{{ docker_swarm_portainer_network }}:
|
{{ docker_swarm_portainer_network }}:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -37,11 +40,21 @@ services:
|
||||||
portainer:
|
portainer:
|
||||||
image: portainer/portainer-ce
|
image: portainer/portainer-ce
|
||||||
command: -H tcp://tasks.agent:9001 --tlsskipverify
|
command: -H tcp://tasks.agent:9001 --tlsskipverify
|
||||||
|
{% if docker_swarm_cluster_haproxy_install %}
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- "9443:9443"
|
||||||
|
- "9000:9000"
|
||||||
|
- "8000:8000"
|
||||||
|
{% endif %}
|
||||||
volumes:
|
volumes:
|
||||||
- portainer_server_data:/data
|
- portainer_server_data:/data
|
||||||
networks:
|
networks:
|
||||||
- {{ docker_swarm_portainer_network }}
|
- {{ docker_swarm_portainer_network }}
|
||||||
|
{% if docker_swarm_cluster_haproxy_install %}
|
||||||
|
|
||||||
- {{ haproxy_docker_overlay_network }}
|
- {{ haproxy_docker_overlay_network }}
|
||||||
|
{% endif %}
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
Loading…
Reference in New Issue