61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
---
|
|
|
|
instance: matrix
|
|
|
|
matrix:
|
|
|
|
server_name: matrix.[[ .consul.domain ]]
|
|
public_url: https://matrix.[[ .consul.domain ]]
|
|
|
|
consul:
|
|
connect:
|
|
upstreams:
|
|
- destination_name: postgres[[ .consul.suffix ]]
|
|
local_bind_port: 5432
|
|
|
|
synapse:
|
|
|
|
image: '[[ .docker.repo ]]matrix-synapse:latest'
|
|
|
|
env: {}
|
|
|
|
config: {}
|
|
|
|
macaroon_secret_key: '{{ with secret "[[ .vault.prefix ]]kv/service/[[ .instance ]]" }}{{ .Data.data.macaroon_secret_key }}{{ end }}'
|
|
form_secret: '{{ with secret "[[ .vault.prefix ]]kv/service/[[ .instance ]]" }}{{ .Data.data.form_secret }}{{ end }}'
|
|
|
|
db:
|
|
host: 127.0.0.1
|
|
port: 5432
|
|
name: '[[ .instance ]]-synapse'
|
|
user: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]-synapse" }}{{ .Data.username }}{{ end }}'
|
|
password: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]-synapse" }}{{ .Data.password }}{{ end }}'
|
|
|
|
wait_for:
|
|
- service: postgres[[ .consul.suffix ]]
|
|
|
|
resources:
|
|
cpu: 500
|
|
memory: 384
|
|
|
|
element:
|
|
image: '[[ .docker.repo ]]matrix-element:latest'
|
|
|
|
env: {}
|
|
|
|
resources:
|
|
cpu: 20
|
|
memory: 16
|
|
|
|
nginx:
|
|
image: nginxinc/nginx-unprivileged:alpine
|
|
|
|
resources:
|
|
cpu: 20
|
|
memory: 16
|
|
|
|
volumes:
|
|
data:
|
|
type: csi
|
|
source: "[[ .instance ]]-synapse-data"
|