docker-compose+ansible setting w/ fuz existing conf
This commit is contained in:
parent
b0010ab0e1
commit
ca07efb0ba
46
matrix.yml
46
matrix.yml
@ -5,17 +5,19 @@
|
|||||||
matrix_synapse_version: "v1.5.1-py3"
|
matrix_synapse_version: "v1.5.1-py3"
|
||||||
# matrix_synapse_version: "v1.5.1"
|
# matrix_synapse_version: "v1.5.1"
|
||||||
matrix_server_name: matrix-sonic-beta.local
|
matrix_server_name: matrix-sonic-beta.local
|
||||||
|
matrix_bind_address: "91.121.210.102"
|
||||||
|
|
||||||
|
matrix_synapse_pg_host: synapse-postgres # does it need to be an IP?
|
||||||
matrix_synapse_pg_host: synapse-postgres
|
matrix_synapse_db_name: psycopg2
|
||||||
# matrix_synapse_pg_user: ""
|
matrix_synapse_pg_user: "synapse"
|
||||||
# matrix_synapse_pg_pass: ""
|
matrix_synapse_pg_pass: "pomme"
|
||||||
# matrix_synapse_pg_db: ""
|
matrix_synapse_pg_db: "synapse"
|
||||||
|
matrix_registration_shared_secret: "xxxxx"
|
||||||
matrix_synapse_report_stats: false
|
matrix_synapse_report_stats: false
|
||||||
|
matrix_synapse_config_path: "/etc/matrix-synapse/homeserver.yaml"
|
||||||
|
|
||||||
# matrix_synapse_extra_config:
|
# to implement
|
||||||
# no_tls: true
|
# matrix_no_tls: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
# - docker_volume:
|
# - docker_volume:
|
||||||
@ -23,33 +25,17 @@
|
|||||||
|
|
||||||
- template:
|
- template:
|
||||||
src: templates/synapse_homeserver.yaml.j2
|
src: templates/synapse_homeserver.yaml.j2
|
||||||
dest: /synapse-data/homeserver.yaml
|
dest: {{ matrix_synapse_config_path }}
|
||||||
|
|
||||||
# - docker_container:
|
|
||||||
# name: synapse-fuz-beta # required. Assign a name to a new container or match an existing container.,When identifying an existing container name may be a name or a long or short container ID.
|
|
||||||
# image: "matrixdotorg/synapse:{{ matrix_synapse_version }}"
|
|
||||||
# published_ports: 8008:8008
|
|
||||||
# domainname: undefined # not required. Container domainname.
|
|
||||||
# # env_file: undefined # not required. Path to a file, present on the target, containing environment variables I(FOO=BAR).,If variable also present in C(env), then C(env) value will override.
|
|
||||||
# hostname: undefined # not required. Container hostname.
|
|
||||||
# state: started
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# env:
|
|
||||||
# SYNAPSE_SERVER_NAME: "{{ matrix_server_name }}"
|
|
||||||
# SYNAPSE_REPORT_STATS: {{ matrix_synapse_report_stats }}
|
|
||||||
# # SYNAPSE_CONFIG_DIR: where additional config files (such as the log config and event signing key) will be stored. Defaults to /data.
|
|
||||||
# # SYNAPSE_CONFIG_PATH: path to the file to be generated. Defaults to <SYNAPSE_CONFIG_DIR>/homeserver.yaml.
|
|
||||||
# # SYNAPSE_DATA_DIR: where the generated config will put persistent data such as the datatase and media store. Defaults to /data.
|
|
||||||
# keep_volumes: yes # not required. Retain volumes associated with a removed container.
|
|
||||||
# volumes: /synapse-data:/data # not required. List of volumes to mount within the container.,Use docker CLI-style syntax: C(/host:/container[:mode]),You can specify a read mode for the mount with either C(ro) or C(rw).,SELinux hosts can additionally use C(z) or C(Z) to use a shared or private label for the volume.
|
|
||||||
# detach: true
|
|
||||||
- template:
|
- template:
|
||||||
src: templates/docker-compose-matrix.yml.j2
|
src: templates/docker-compose-matrix.yml.j2
|
||||||
dest: /synapse-data/homeserver.yaml
|
dest: /etc/docker/docker-compose.yml
|
||||||
|
|
||||||
- name: Create and start matrix services
|
- name: Create and start matrix services
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_src: matrix
|
project_src: matrix
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
|
|
||||||
|
# uploads_path: "/var/lib/matrix-synapse/uploads"
|
||||||
|
# media_store_path: "/var/lib/matrix-synapse/media"
|
||||||
|
@ -23,10 +23,10 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# See the readme for a full documentation of the environment settings
|
# See the readme for a full documentation of the environment settings
|
||||||
environment:
|
environment:
|
||||||
- SYNAPSE_CONFIG_PATH=/etc/homeserver.yaml
|
- SYNAPSE_CONFIG_PATH={{ matrix_synapse_config_path }}
|
||||||
volumes:
|
volumes:
|
||||||
# You may either store all the files in a local folder
|
# You may either store all the files in a local folder
|
||||||
- ./matrix-config:/etc
|
- ./matrix-config:/etc/matrix-synapse
|
||||||
- ./files:/data
|
- ./files:/data
|
||||||
# .. or you may split this between different storage points
|
# .. or you may split this between different storage points
|
||||||
# - ./files:/data
|
# - ./files:/data
|
||||||
@ -61,8 +61,8 @@ services:
|
|||||||
image: docker.io/postgres:10-alpine
|
image: docker.io/postgres:10-alpine
|
||||||
# Change that password, of course!
|
# Change that password, of course!
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=synapse
|
- POSTGRES_USER={{ matrix_synapse_db_name }}
|
||||||
- POSTGRES_PASSWORD=changeme
|
- POSTGRES_PASSWORD={{ matrix_synapse_pg_pass }}
|
||||||
volumes:
|
volumes:
|
||||||
# You may store the database tables in a local folder..
|
# You may store the database tables in a local folder..
|
||||||
- ./schemas:/var/lib/postgresql/data
|
- ./schemas:/var/lib/postgresql/data
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user