mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented vars, tasks and templates for central database setup until mastodon role
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
---
|
||||
- name: include docker vars
|
||||
include_vars: vars/docker-database-service.yml.j2
|
||||
|
||||
- name: create central database
|
||||
include_role:
|
||||
name: docker-{{database_type}}
|
||||
when: enable_central_database | bool
|
||||
|
||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||
include_tasks: nginx-docker-proxy-domain.yml
|
||||
vars:
|
||||
domain: "{{synapse_domain}}"
|
||||
http_port: "{{synapse_http_port}}"
|
||||
|
||||
- name: create database in central Postgres
|
||||
include_role:
|
||||
name: docker-postgres
|
||||
when: enable_central_database | bool
|
||||
|
||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||
include_tasks: nginx-docker-proxy-domain.yml
|
||||
|
@@ -19,7 +19,7 @@ services:
|
||||
{% if not enable_central_database %}
|
||||
depends_on:
|
||||
- database
|
||||
{% include 'templates/docker-postgres-service.yml.j2' %}
|
||||
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
|
||||
{% endif %}
|
||||
|
||||
element:
|
||||
@@ -60,14 +60,9 @@ services:
|
||||
# - instagram_bridge_data:/data
|
||||
|
||||
volumes:
|
||||
{% if not enable_central_database %}
|
||||
database:
|
||||
{% endif %}
|
||||
{% include 'templates/docker-database-volume.yml.j2' %}
|
||||
synapse_data:
|
||||
#telegram_bridge_data:
|
||||
#whatsapp_bridge_data:
|
||||
#facebook_bridge_data:
|
||||
#instagram_bridge_data:
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
#instagram_bridge_data:
|
@@ -1,7 +1,5 @@
|
||||
---
|
||||
docker_compose_project_name: "matrix"
|
||||
docker_compose_instance_directory: "{{path_docker_compose_instances}}{{docker_compose_project_name}}/"
|
||||
database_host: "database"
|
||||
database_databasename: "{{docker_compose_project_name}}"
|
||||
database_username: "{{docker_compose_project_name}}"
|
||||
database_password: "{{matrix_database_password}}"
|
||||
database_password: "{{matrix_database_password}}"
|
||||
database_version: "{{ baserow_database_version | default(postgres_default_version) }}"
|
||||
database_type: "postgres"
|
Reference in New Issue
Block a user