mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
In between commit refactoring LDAP, to continue working on other computer
This commit is contained in:
13
roles/docker-phpldapadmin/tasks/main.yml
Normal file
13
roles/docker-phpldapadmin/tasks/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: "include docker-compose role"
|
||||
include_role:
|
||||
name: docker-compose
|
||||
|
||||
- name: "include role nginx-domain-setup for {{application_id}}"
|
||||
include_role:
|
||||
name: nginx-domain-setup
|
||||
vars:
|
||||
domain: "{{ domains[application_id] }}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
||||
- name: "copy docker-compose.yml and env file"
|
||||
include_tasks: copy-docker-compose-and-env.yml
|
19
roles/docker-phpldapadmin/templates/docker-compose.yml.j2
Normal file
19
roles/docker-phpldapadmin/templates/docker-compose.yml.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
|
||||
{% include 'roles/docker-oauth2-proxy/templates/container.yml.j2' %}
|
||||
|
||||
application:
|
||||
container_name: {{ application_id }}
|
||||
logging:
|
||||
driver: journald
|
||||
restart: {{docker_restart_policy}}
|
||||
image: leenooks/phpldapadmin:{{applications[application_id].version}}
|
||||
ports:
|
||||
- 127.0.0.1:{{ports.localhost.http[application_id]}}:8080
|
||||
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
||||
data:
|
||||
|
||||
{% include 'templates/docker/compose/networks.yml.j2' %}
|
3
roles/docker-phpldapadmin/templates/env.j2
Normal file
3
roles/docker-phpldapadmin/templates/env.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
# @See https://github.com/leenooks/phpLDAPadmin/wiki/Docker-Container
|
||||
APP_URL= https://{{domains[application_id]}}
|
||||
LDAP_HOST= openldap
|
1
roles/docker-phpldapadmin/vars/main.yml
Normal file
1
roles/docker-phpldapadmin/vars/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
application_id: "phpldapadmin"
|
Reference in New Issue
Block a user