docker-compose+ansible setting w/ fuz existing conf
This commit is contained in:
parent
0042c045a0
commit
2ab30caf07
46
matrix.yml
46
matrix.yml
@ -5,17 +5,19 @@
|
||||
matrix_synapse_version: "v1.5.1-py3"
|
||||
# matrix_synapse_version: "v1.5.1"
|
||||
matrix_server_name: matrix-sonic-beta.local
|
||||
matrix_bind_address: "91.121.210.102"
|
||||
|
||||
|
||||
matrix_synapse_pg_host: synapse-postgres
|
||||
# matrix_synapse_pg_user: ""
|
||||
# matrix_synapse_pg_pass: ""
|
||||
# matrix_synapse_pg_db: ""
|
||||
|
||||
matrix_synapse_pg_host: synapse-postgres # does it need to be an IP?
|
||||
matrix_synapse_db_name: psycopg2
|
||||
matrix_synapse_pg_user: "synapse"
|
||||
matrix_synapse_pg_pass: "pomme"
|
||||
matrix_synapse_pg_db: "synapse"
|
||||
matrix_registration_shared_secret: "xxxxx"
|
||||
matrix_synapse_report_stats: false
|
||||
matrix_synapse_config_path: "/etc/matrix-synapse/homeserver.yaml"
|
||||
|
||||
# matrix_synapse_extra_config:
|
||||
# no_tls: true
|
||||
# to implement
|
||||
# matrix_no_tls: true
|
||||
|
||||
tasks:
|
||||
# - docker_volume:
|
||||
@ -23,33 +25,17 @@
|
||||
|
||||
- template:
|
||||
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:
|
||||
src: templates/docker-compose-matrix.yml.j2
|
||||
dest: /synapse-data/homeserver.yaml
|
||||
dest: /etc/docker/docker-compose.yml
|
||||
|
||||
- name: Create and start matrix services
|
||||
docker_compose:
|
||||
project_src: matrix
|
||||
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
|
||||
# See the readme for a full documentation of the environment settings
|
||||
environment:
|
||||
- SYNAPSE_CONFIG_PATH=/etc/homeserver.yaml
|
||||
- SYNAPSE_CONFIG_PATH={{ matrix_synapse_config_path }}
|
||||
volumes:
|
||||
# You may either store all the files in a local folder
|
||||
- ./matrix-config:/etc
|
||||
- ./matrix-config:/etc/matrix-synapse
|
||||
- ./files:/data
|
||||
# .. or you may split this between different storage points
|
||||
# - ./files:/data
|
||||
@ -61,8 +61,8 @@ services:
|
||||
image: docker.io/postgres:10-alpine
|
||||
# Change that password, of course!
|
||||
environment:
|
||||
- POSTGRES_USER=synapse
|
||||
- POSTGRES_PASSWORD=changeme
|
||||
- POSTGRES_USER={{ matrix_synapse_db_name }}
|
||||
- POSTGRES_PASSWORD={{ matrix_synapse_pg_pass }}
|
||||
volumes:
|
||||
# You may store the database tables in a local folder..
|
||||
- ./schemas:/var/lib/postgresql/data
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user