Compare commits
19 Commits
abcaf22958
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f989c204d1 | ||
|
|
69eca0189e | ||
|
|
33791031e2 | ||
|
|
e0047b73f4 | ||
|
|
8fdb8eaf80 | ||
|
|
bc2220e1ed | ||
|
|
4d4ade6ae2 | ||
|
|
3e9d83457d | ||
|
|
5b4bea1b09 | ||
|
|
53af0b80f6 | ||
|
|
8f777f7ed7 | ||
|
|
f2bd55941a | ||
|
|
2fef2c6ad8 | ||
|
|
599332b1d9 | ||
|
|
ff77e75d1d | ||
|
|
006a87f678 | ||
|
|
ae7558a470 | ||
|
|
340d870049 | ||
|
|
fd75af01af |
@@ -1,8 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Prometheus alertmanager container
|
- name: Prometheus alertmanager container
|
||||||
include_role:
|
include_role:
|
||||||
name: container
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: alertmanager
|
docker_service: alertmanager
|
||||||
docker_image: prom/alertmanager
|
docker_image: prom/alertmanager
|
||||||
|
|||||||
@@ -3,3 +3,5 @@ authentik_tag: latest
|
|||||||
authentik_env: {}
|
authentik_env: {}
|
||||||
docker_networks:
|
docker_networks:
|
||||||
- name: authentik
|
- name: authentik
|
||||||
|
|
||||||
|
authentik_additional_mounts: []
|
||||||
|
|||||||
@@ -15,6 +15,42 @@ argument_specs:
|
|||||||
type: dict
|
type: dict
|
||||||
required: false
|
required: false
|
||||||
default: {}
|
default: {}
|
||||||
|
authentik_additional_mounts:
|
||||||
|
description: "List of bind mounts or volumes to be mounted inside the container. Each element is a dict with path and exactly one of name, src or template"
|
||||||
|
type: list
|
||||||
|
required: false
|
||||||
|
default: []
|
||||||
|
elements: dict
|
||||||
|
options:
|
||||||
|
path:
|
||||||
|
description: "The path inside the container to mount at"
|
||||||
|
type: str
|
||||||
|
required: true
|
||||||
|
readonly:
|
||||||
|
description: "If true, volume will be mounted as read only inside the container. Only applies for named and src mounts."
|
||||||
|
type: bool
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
mode:
|
||||||
|
description: "Permissions for the created/templated directory. Defaults to '0644' for files, '0755' for directories. Doesn't apply for named volumes."
|
||||||
|
type: str
|
||||||
|
required: false
|
||||||
|
name:
|
||||||
|
description: "If docker_volume_type is named, the name of the named volume to be mounted at path. If docker_volume_type is bind, the name of the folder to create under /opt/<service>[/suffix]/mounts/ and mount at path."
|
||||||
|
type: str
|
||||||
|
required: false
|
||||||
|
src:
|
||||||
|
description: "Host path to bind mount inside the container."
|
||||||
|
type: str
|
||||||
|
required: false
|
||||||
|
template:
|
||||||
|
description: "Name of template without .j2 extension. Will be templated at /opt/<service>[/suffix]/mounts/<template> and mounted read only inside the container."
|
||||||
|
type: str
|
||||||
|
required: false
|
||||||
|
copypath:
|
||||||
|
description: "Name of file or directory to copy. Will be deployed from files/<copypath> to /opt/<service>[/suffix]/mounts/<copypath> and mounted read only inside the container."
|
||||||
|
type: str
|
||||||
|
required: false
|
||||||
|
|
||||||
# All options after this will be passed directly to the container role
|
# All options after this will be passed directly to the container role
|
||||||
docker_service_suffix:
|
docker_service_suffix:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
name: service
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: authentik
|
docker_service: authentik
|
||||||
docker_image: "beryju/authentik:{{ authentik_tag }}"
|
docker_image: "ghcr.io/goauthentik/server:{{ authentik_tag }}"
|
||||||
docker_command:
|
docker_command:
|
||||||
- server
|
- server
|
||||||
docker_image_http_port: 9000
|
docker_image_http_port: 9000
|
||||||
@@ -12,13 +12,7 @@
|
|||||||
docker_additional_services:
|
docker_additional_services:
|
||||||
- redis
|
- redis
|
||||||
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
||||||
docker_mounts:
|
docker_mounts: "{{ _authentik_mounts }}"
|
||||||
- path: /media
|
|
||||||
name: "media"
|
|
||||||
- path: /templates
|
|
||||||
name: "templates"
|
|
||||||
- path: /certs
|
|
||||||
name: "certs"
|
|
||||||
|
|
||||||
- name: Authentik worker container
|
- name: Authentik worker container
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
@@ -26,15 +20,9 @@
|
|||||||
vars:
|
vars:
|
||||||
docker_namespace: authentik
|
docker_namespace: authentik
|
||||||
docker_service: worker
|
docker_service: worker
|
||||||
docker_image: "beryju/authentik:{{ authentik_tag }}"
|
docker_image: "ghcr.io/goauthentik/server:{{ authentik_tag }}"
|
||||||
docker_command:
|
docker_command:
|
||||||
- worker
|
- worker
|
||||||
reverse_proxy_type: none
|
reverse_proxy_type: none
|
||||||
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
||||||
docker_mounts:
|
docker_mounts: "{{ _authentik_mounts }}"
|
||||||
- path: /media
|
|
||||||
name: "media"
|
|
||||||
- path: /templates
|
|
||||||
name: "templates"
|
|
||||||
- path: /certs
|
|
||||||
name: "certs"
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
---
|
---
|
||||||
|
_authentik_default_mounts:
|
||||||
|
- path: /media
|
||||||
|
name: "media"
|
||||||
|
- path: /templates
|
||||||
|
name: "templates"
|
||||||
|
- path: /certs
|
||||||
|
name: "certs"
|
||||||
|
_authentik_mounts: "{{ _authentik_default_mounts + authentik_additional_mounts }}"
|
||||||
|
|
||||||
authentik_common_env:
|
authentik_common_env:
|
||||||
AUTHENTIK_REDIS__HOST: authentik-redis
|
AUTHENTIK_REDIS__HOST: authentik-redis
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
name: service
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: authentik-ldap
|
docker_service: authentik-ldap
|
||||||
docker_image: beryju/authentik-ldap:{{ authentik_ldap_tag }}
|
docker_image: ghcr.io/goauthentik/ldap:{{ authentik_ldap_tag }}
|
||||||
reverse_proxy_type: none
|
reverse_proxy_type: none
|
||||||
docker_env:
|
docker_env:
|
||||||
AUTHENTIK_HOST: "{{ authentik_ldap_authentik_address }}"
|
AUTHENTIK_HOST: "{{ authentik_ldap_authentik_address }}"
|
||||||
|
|||||||
@@ -1,14 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
- name: Ensure legacy apt repository not present
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/apt/sources.list.d/docker.list
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Add docker apt repository
|
- name: Add docker apt repository
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.deb822_repository:
|
||||||
name: uumas.general.apt_repository
|
name: docker
|
||||||
vars:
|
uris: https://download.docker.com/linux/{{ ansible_distribution | lower }}
|
||||||
repo_name: docker
|
signed_by: https://download.docker.com/linux/debian/gpg
|
||||||
repo_url: https://download.docker.com/linux/{{ ansible_distribution | lower }}
|
suites: "{{ ansible_distribution_release }}"
|
||||||
repo_key_url: https://download.docker.com/linux/debian/gpg
|
# architectures: "{{ apt_arch }}"
|
||||||
repo_arch: "{{ apt_arch }}"
|
components:
|
||||||
repo_components:
|
|
||||||
- stable
|
- stable
|
||||||
|
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dokuwiki_wiki_name: DokuWiki
|
dokuwiki_wiki_name: DokuWiki
|
||||||
dokuwiki_admin_email: "{{ admin_email }}"
|
dokuwiki_admin_email: "{{ admin_email }}"
|
||||||
|
|||||||
@@ -1,18 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Dokuwiki container
|
- name: Dokuwiki container
|
||||||
import_role:
|
import_role:
|
||||||
name: container
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: dokuwiki
|
docker_service: dokuwiki
|
||||||
docker_image: bitnami/dokuwiki
|
docker_image: dokuwiki/dokuwiki:stable
|
||||||
docker_image_http_port: 8080
|
docker_image_http_port: 8080
|
||||||
docker_mounts:
|
docker_mounts:
|
||||||
- name: data
|
- name: data
|
||||||
path: /bitnami/dokuwiki
|
path: /storage
|
||||||
docker_env:
|
|
||||||
DOKUWIKI_USERNAME: admin
|
|
||||||
DOKUWIKI_FULL_NAME: Admin
|
|
||||||
DOKUWIKI_PASSWORD: "{{ dokuwiki_admin_password }}"
|
|
||||||
DOKUWIKI_EMAIL: "{{ dokuwiki_admin_email }}"
|
|
||||||
DOKUWIKI_WIKI_NAME: "{{ dokuwiki_wiki_name }}"
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ dependencies:
|
|||||||
GITEA__mailer__ENABLED: "true"
|
GITEA__mailer__ENABLED: "true"
|
||||||
GITEA__mailer__HOST: "{{ smtp_server }}:587"
|
GITEA__mailer__HOST: "{{ smtp_server }}:587"
|
||||||
GITEA__mailer__FROM: "{{ smtp_from }}"
|
GITEA__mailer__FROM: "{{ smtp_from }}"
|
||||||
GITEA__mailer__MAILER_TYPE: smtp
|
GITEA__mailer__PROTOCOL: smtp
|
||||||
GITEA__mailer__USER: "{{ smtp_user | default(omit) }}"
|
GITEA__mailer__USER: "{{ smtp_user | default(omit) }}"
|
||||||
GITEA__mailer__PASSWD: "{{ smtp_pw | default(omit) }}"
|
GITEA__mailer__PASSWD: "{{ smtp_pw | default(omit) }}"
|
||||||
GITEA__service__REQUIRE_SIGNIN_VIEW: "{{ gitea_require_signin_view | default(omit) }}"
|
GITEA__service__REQUIRE_SIGNIN_VIEW: "{{ gitea_require_signin_view | default(omit) }}"
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Grafana container
|
- name: Grafana container
|
||||||
import_role:
|
include_role:
|
||||||
name: container
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: grafana
|
docker_service: grafana
|
||||||
docker_image: grafana/grafana
|
docker_image: grafana/grafana
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ dependencies:
|
|||||||
docker_image_http_port: 3000
|
docker_image_http_port: 3000
|
||||||
docker_database: postgres
|
docker_database: postgres
|
||||||
docker_mounts:
|
docker_mounts:
|
||||||
- name: hedgedoc_uploads
|
- name: uploads
|
||||||
path: /hedgedoc/public/uploads
|
path: /hedgedoc/public/uploads
|
||||||
docker_env:
|
docker_env:
|
||||||
CMD_DB_URL: postgres://hedgedoc:{{ database_passwords.hedgedoc }}@hedgedoc_db:5432/hedgedoc
|
CMD_DB_URL: postgres://hedgedoc:{{ database_passwords.hedgedoc }}@hedgedoc_db:5432/hedgedoc
|
||||||
|
|||||||
@@ -133,3 +133,13 @@
|
|||||||
- name: meet.jitsi
|
- name: meet.jitsi
|
||||||
aliases:
|
aliases:
|
||||||
- jvb.meet.jitsi
|
- jvb.meet.jitsi
|
||||||
|
|
||||||
|
- name: Open ports for jitsi
|
||||||
|
ansible.posix.firewalld:
|
||||||
|
port: "{{ item }}"
|
||||||
|
state: enabled
|
||||||
|
permanent: true
|
||||||
|
immediate: true
|
||||||
|
loop:
|
||||||
|
- 4443/tcp
|
||||||
|
- 10000/udp
|
||||||
|
|||||||
@@ -6,13 +6,12 @@ dependencies:
|
|||||||
docker_image: quay.io/keycloak/keycloak:latest
|
docker_image: quay.io/keycloak/keycloak:latest
|
||||||
docker_image_http_port: 8080
|
docker_image_http_port: 8080
|
||||||
docker_database: postgres
|
docker_database: postgres
|
||||||
docker_command: start
|
docker_command: start --proxy-headers xforwarded
|
||||||
docker_env:
|
docker_env:
|
||||||
KEYCLOAK_ADMIN: admin
|
KEYCLOAK_ADMIN: admin
|
||||||
KEYCLOAK_ADMIN_PASSWORD: "{{ keycloak_admin_pw }}"
|
KEYCLOAK_ADMIN_PASSWORD: "{{ keycloak_admin_pw }}"
|
||||||
KC_HOSTNAME: "{{ docker_vhost_domains.keycloak[0] }}"
|
KC_HOSTNAME: "{{ docker_vhost_domains.keycloak[0] }}"
|
||||||
KC_HTTP_ENABLED: "true"
|
KC_HTTP_ENABLED: "true"
|
||||||
KC_PROXY: edge
|
|
||||||
KC_DB: postgres
|
KC_DB: postgres
|
||||||
KC_DB_URL: jdbc:postgresql://keycloak_db/keycloak
|
KC_DB_URL: jdbc:postgresql://keycloak_db/keycloak
|
||||||
KC_DB_USERNAME: keycloak
|
KC_DB_USERNAME: keycloak
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Prometheus container
|
- name: Prometheus container
|
||||||
include_role:
|
include_role:
|
||||||
name: container
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: prometheus
|
docker_service: prometheus
|
||||||
docker_image: prom/prometheus
|
docker_image: prom/prometheus
|
||||||
@@ -10,7 +9,7 @@
|
|||||||
docker_command:
|
docker_command:
|
||||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||||
- "--storage.tsdb.path=/prometheus"
|
- "--storage.tsdb.path=/prometheus"
|
||||||
- "--storage.tsdb.retention={{ prometheus_storage_retention }}"
|
- "--storage.tsdb.retention.time={{ prometheus_storage_retention }}"
|
||||||
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
||||||
- "--web.console.templates=/usr/share/prometheus/consoles"
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
||||||
docker_mounts:
|
docker_mounts:
|
||||||
@@ -33,7 +32,7 @@
|
|||||||
|
|
||||||
- name: Webhook container for prometheus
|
- name: Webhook container for prometheus
|
||||||
include_role:
|
include_role:
|
||||||
name: container
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: prometheus_webhook
|
docker_service: prometheus_webhook
|
||||||
docker_image: thecatlady/webhook
|
docker_image: thecatlady/webhook
|
||||||
@@ -47,7 +46,7 @@
|
|||||||
|
|
||||||
- name: Blackbox exporter for prometheus
|
- name: Blackbox exporter for prometheus
|
||||||
include_role:
|
include_role:
|
||||||
name: container
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: blackbox_exporter
|
docker_service: blackbox_exporter
|
||||||
docker_image: prom/blackbox-exporter
|
docker_image: prom/blackbox-exporter
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ docker_restart_policy: always
|
|||||||
|
|
||||||
reverse_proxy_type: caddy
|
reverse_proxy_type: caddy
|
||||||
docker_proxy_target_protocol: http
|
docker_proxy_target_protocol: http
|
||||||
|
docker_vhost_additional_locations: []
|
||||||
|
|
||||||
docker_additional_env: {}
|
docker_additional_env: {}
|
||||||
docker_additional_services: []
|
docker_additional_services: []
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ argument_specs:
|
|||||||
docker_vhost_additional_locations:
|
docker_vhost_additional_locations:
|
||||||
description: "Passed to vhost role as vhost_locations variable"
|
description: "Passed to vhost role as vhost_locations variable"
|
||||||
required: false
|
required: false
|
||||||
|
default: []
|
||||||
docker_published_ports:
|
docker_published_ports:
|
||||||
description: "A list of published ports in docker format (<host listen address>:<host port>:<container port>)"
|
description: "A list of published ports in docker format (<host listen address>:<host port>:<container port>)"
|
||||||
type: list
|
type: list
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
docker_image: "{{ db_container_image }}"
|
docker_image: "{{ db_container_image }}"
|
||||||
reverse_proxy_type: none
|
reverse_proxy_type: none
|
||||||
docker_mounts: "{{ db_container_mounts }}"
|
docker_mounts: "{{ db_container_mounts }}"
|
||||||
docker_published_ports: "{{ db_published_ports | default([]) }}"
|
docker_published_ports: "{{ db_published_ports }}"
|
||||||
docker_env: "{{ db_container_env | default({}) }}"
|
docker_env: "{{ db_container_env | default({}) }}"
|
||||||
docker_additional_env: {}
|
docker_additional_env: {}
|
||||||
docker_networks: []
|
docker_networks: []
|
||||||
|
|||||||
@@ -68,4 +68,4 @@
|
|||||||
image_user: "{{ container_image.Config.User }}"
|
image_user: "{{ container_image.Config.User }}"
|
||||||
when:
|
when:
|
||||||
- not ansible_check_mode
|
- not ansible_check_mode
|
||||||
- container_image.Config.User | int
|
- container_image.Config.User | int != 0
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
_docker_service_name: "{{ docker_service_name }}"
|
_docker_service_name: "{{ docker_service_name }}"
|
||||||
_docker_mount_definition: "{{ docker_mount_definition }}"
|
_docker_mount_definition: "{{ docker_mount_definition }}"
|
||||||
_container_published_ports: "{{ container_published_ports }}"
|
_container_published_ports: "{{ container_published_ports }}"
|
||||||
|
_docker_published_ports: "{{ docker_published_ports }}"
|
||||||
_container_image: "{{ container_image }}"
|
_container_image: "{{ container_image }}"
|
||||||
_container_networks: "{{ container_networks }}"
|
_container_networks: "{{ container_networks }}"
|
||||||
_template_mounts_needed: "{{ template_mounts_needed }}"
|
_template_mounts_needed: "{{ template_mounts_needed }}"
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
container_image: ''
|
container_image: ''
|
||||||
image_user: ''
|
image_user: ''
|
||||||
container_networks: []
|
container_networks: []
|
||||||
|
db_published_ports: []
|
||||||
|
|
||||||
- name: Add suffix to docker_service_name
|
- name: Add suffix to docker_service_name
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Container role initialization
|
- name: Role initialization
|
||||||
import_tasks: init.yml
|
import_tasks: init.yml
|
||||||
|
|
||||||
- name: Docker network
|
- name: Docker network
|
||||||
@@ -68,8 +68,8 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ docker_mounts_dir }}"
|
path: "{{ docker_mounts_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user.uid | default(omit) }}"
|
owner: "{{ user.uid if docker_host_user else omit }}"
|
||||||
group: "{{ user.group | default(omit) }}"
|
group: "{{ user.group if docker_host_user else omit }}"
|
||||||
mode: 0700
|
mode: 0700
|
||||||
|
|
||||||
- name: Database container
|
- name: Database container
|
||||||
@@ -123,6 +123,7 @@
|
|||||||
docker_service_name: "{{ _docker_service_name }}"
|
docker_service_name: "{{ _docker_service_name }}"
|
||||||
docker_mount_definition: "{{ _docker_mount_definition }}"
|
docker_mount_definition: "{{ _docker_mount_definition }}"
|
||||||
container_published_ports: "{{ _container_published_ports }}"
|
container_published_ports: "{{ _container_published_ports }}"
|
||||||
|
docker_published_ports: "{{ _docker_published_ports }}"
|
||||||
container_image: "{{ _container_image }}"
|
container_image: "{{ _container_image }}"
|
||||||
container_networks: "{{ _container_networks }}"
|
container_networks: "{{ _container_networks }}"
|
||||||
template_mounts_needed: "{{ _template_mounts_needed }}"
|
template_mounts_needed: "{{ _template_mounts_needed }}"
|
||||||
|
|||||||
@@ -41,7 +41,8 @@
|
|||||||
copy:
|
copy:
|
||||||
src: "files/{{ item.copypath }}"
|
src: "files/{{ item.copypath }}"
|
||||||
dest: "{{ docker_mounts_dir }}/"
|
dest: "{{ docker_mounts_dir }}/"
|
||||||
mode: "{{ item.mode | default('0755') }}"
|
directory_mode: "{{ item.mode | default('0755') }}"
|
||||||
|
mode: "{{ item.mode | default('0644') }}"
|
||||||
when: item.copypath is defined
|
when: item.copypath is defined
|
||||||
loop: "{{ docker_mounts }}"
|
loop: "{{ docker_mounts }}"
|
||||||
notify: Restart container
|
notify: Restart container
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
Sets up an UISP docker container.
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
argument_specs:
|
|
||||||
main:
|
|
||||||
short_description: UISP container
|
|
||||||
description: "Sets up an UISP docker container."
|
|
||||||
options:
|
|
||||||
ports:
|
|
||||||
description: "ports.netflow is used directly. Others passed to container role"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
# All options after this will be passed directly to the container role
|
|
||||||
docker_service_suffix:
|
|
||||||
description: "Passed to container role"
|
|
||||||
required: false
|
|
||||||
docker_host_user:
|
|
||||||
description: "Passed to container role"
|
|
||||||
required: false
|
|
||||||
|
|
||||||
docker_additional_services:
|
|
||||||
description: "Passed to container role"
|
|
||||||
required: false
|
|
||||||
|
|
||||||
docker_volume_type:
|
|
||||||
description: "Passed to container role"
|
|
||||||
required: false
|
|
||||||
reverse_proxy_type:
|
|
||||||
description: "Passed to container role"
|
|
||||||
required: false
|
|
||||||
docker_vhost_domains:
|
|
||||||
description: "Passed to container role"
|
|
||||||
required: false
|
|
||||||
docker_entrypoint:
|
|
||||||
description: "Passed to container role"
|
|
||||||
required: false
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: UISP container
|
|
||||||
import_role:
|
|
||||||
name: container
|
|
||||||
vars:
|
|
||||||
docker_service: uisp
|
|
||||||
docker_proxy_target_protocol: https
|
|
||||||
docker_image: nico640/docker-unms
|
|
||||||
docker_image_http_port: 8443
|
|
||||||
docker_mounts:
|
|
||||||
- name: config
|
|
||||||
path: /config
|
|
||||||
docker_published_ports:
|
|
||||||
- "0.0.0.0:{{ ports.uisp.netflow }}:2055"
|
|
||||||
docker_env:
|
|
||||||
HTTPS_PORT: "8443"
|
|
||||||
PUBLIC_HTTPS_PORT: "443"
|
|
||||||
@@ -7,7 +7,7 @@ dependencies:
|
|||||||
docker_image_http_port: 8080
|
docker_image_http_port: 8080
|
||||||
docker_database: mongo
|
docker_database: mongo
|
||||||
docker_mounts:
|
docker_mounts:
|
||||||
- name: wekan_data
|
- name: data
|
||||||
path: /data
|
path: /data
|
||||||
docker_env:
|
docker_env:
|
||||||
MONGO_URL: mongodb://wekan_db:27017/wekan
|
MONGO_URL: mongodb://wekan_db:27017/wekan
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Get wekan data volume path from container creation output
|
- name: Get wekan data volume path from container creation output
|
||||||
set_fact:
|
set_fact:
|
||||||
wekan_data_volume: "{{ container_out.container.Mounts | selectattr('Destination', 'equalto', '/data') | join }}"
|
wekan_data_volume: "{{ container_out.container.Mounts | selectattr('Destination', 'equalto', '/data') | join }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user