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