expose host postgres PID to container (does not work)
This commit is contained in:
parent
a5eb4c7d9f
commit
6c254b9db0
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,8 @@ version: '3'
|
||||||
# On network {{ site.subnet_cidr_address }}:
|
# On network {{ site.subnet_cidr_address }}:
|
||||||
# - site (synapse) at {{ site.subnet_site_ip }}
|
# - site (synapse) at {{ site.subnet_site_ip }}
|
||||||
|
|
||||||
|
# Synapse's docker-compose: https://github.com/matrix-org/synapse/blob/master/contrib/docker/docker-compose.yml
|
||||||
|
|
||||||
services:
|
services:
|
||||||
site:
|
site:
|
||||||
image: matrixdotorg/synapse:{{ synapse.version }}
|
image: matrixdotorg/synapse:{{ synapse.version }}
|
||||||
|
@ -14,6 +16,7 @@ services:
|
||||||
- GID={{ site.user_gid }}
|
- GID={{ site.user_gid }}
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ site_data_path }}:/data"
|
- "{{ site_data_path }}:/data"
|
||||||
|
- "/var/run/postgresql:/var/run/postgresql"
|
||||||
networks:
|
networks:
|
||||||
net:
|
net:
|
||||||
ipv4_address: "{{ site.subnet_site_ip }}"
|
ipv4_address: "{{ site.subnet_site_ip }}"
|
||||||
|
|
|
@ -633,7 +633,8 @@ database:
|
||||||
user: "{{ site.postgres_username }}"
|
user: "{{ site.postgres_username }}"
|
||||||
password: "{{ site.postgres_password }}"
|
password: "{{ site.postgres_password }}"
|
||||||
database: "{{ site.postgres_database }}"
|
database: "{{ site.postgres_database }}"
|
||||||
host: "{{ site.postgres_host }}"
|
#host: "{{ site.postgres_host }}"
|
||||||
|
host: "/var/run/postgresql"
|
||||||
cp_min: 5
|
cp_min: 5
|
||||||
cp_max: 10
|
cp_max: 10
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue