Switching matrix to actually use the postgres database #5
@@ -1,15 +1,14 @@
|
|||||||
# This compose file is compatible with Compose itself, it might need some
|
# This compose file is compatible with Compose itself, it might need some
|
||||||
# adjustments to run properly with stack.
|
# adjustments to run properly with stack.
|
||||||
|
|
||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
synapse:
|
synapse:
|
||||||
build:
|
#build:
|
||||||
context: ../..
|
#context: ../..
|
||||||
dockerfile: docker/Dockerfile
|
#dockerfile: docker/Dockerfile
|
||||||
|
|
|||||||
image: docker.io/matrixdotorg/synapse:latest
|
image: docker.io/matrixdotorg/synapse:latest
|
||||||
|
container_name: synapse
|
||||||
# Since synapse does not retry to connect to the database, restart upon
|
# Since synapse does not retry to connect to the database, restart upon
|
||||||
# failure
|
# failure
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -25,7 +24,7 @@ services:
|
|||||||
# - /path/to/ssd:/data/uploads
|
# - /path/to/ssd:/data/uploads
|
||||||
# - /path/to/large_hdd:/data/media
|
# - /path/to/large_hdd:/data/media
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- synapse_db
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
@@ -53,8 +52,9 @@ services:
|
|||||||
- traefik.http.routers.https-synapse.tls.certresolver=myresolver
|
- traefik.http.routers.https-synapse.tls.certresolver=myresolver
|
||||||
- traefik.http.services.synapse.loadbalancer.server.port=8008
|
- traefik.http.services.synapse.loadbalancer.server.port=8008
|
||||||
|
|
||||||
db:
|
synapse_db:
|
||||||
image: docker.io/postgres:12-alpine
|
image: docker.io/postgres:14-alpine
|
||||||
|
container_name: synapse_db
|
||||||
# Change that password, of course!
|
# Change that password, of course!
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=postgres
|
- POSTGRES_USER=postgres
|
||||||
@@ -72,6 +72,7 @@ services:
|
|||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.12-alpine
|
image: nginx:1.12-alpine
|
||||||
|
container_name: synapse_nginx
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|||||||
Reference in New Issue
Block a user
Actually remove this