expose host postgres PID to container (does not work)

This commit is contained in:
LUXEY Adrien 2020-06-21 21:40:30 +02:00
parent a5eb4c7d9f
commit 6c254b9db0
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,8 @@ version: '3'
# On network {{ site.subnet_cidr_address }}:
# - 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:
site:
image: matrixdotorg/synapse:{{ synapse.version }}
@ -14,6 +16,7 @@ services:
- GID={{ site.user_gid }}
volumes:
- "{{ site_data_path }}:/data"
- "/var/run/postgresql:/var/run/postgresql"
networks:
net:
ipv4_address: "{{ site.subnet_site_ip }}"

View file

@ -633,7 +633,8 @@ database:
user: "{{ site.postgres_username }}"
password: "{{ site.postgres_password }}"
database: "{{ site.postgres_database }}"
host: "{{ site.postgres_host }}"
#host: "{{ site.postgres_host }}"
host: "/var/run/postgresql"
cp_min: 5
cp_max: 10