Adding matrix dendrite
This commit is contained in:
parent
1f2f2f3f0d
commit
e8324cdeea
|
@ -0,0 +1,6 @@
|
|||
BASE_DATA_DIR=$HOME/docker_data
|
||||
POSTGRES_PASSWORD=
|
||||
POSTGRES_DB=
|
||||
POSTGRES_USER=
|
||||
POSTGRES_HOST=
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
version: "3.4"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
hostname: postgres
|
||||
image: postgres:15-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
# This will create a docker volume to persist the database files in.
|
||||
# If you prefer those files to be outside of docker, you'll need to change this.
|
||||
- ${BASE_DATA_DIR}/dendrite/postgres-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_DATABASE: dendrite
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U dendrite"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- internal
|
||||
|
||||
monolith:
|
||||
hostname: monolith
|
||||
image: matrixdotorg/dendrite-monolith:latest
|
||||
ports:
|
||||
- 8008:8008
|
||||
- 8448:8448
|
||||
volumes:
|
||||
- ${BASE_DATA_DIR}/dendrite/config:/etc/dendrite
|
||||
- ${BASE_DATA_DIR}/dendrite/media:/var/dendrite/media
|
||||
- ${BASE_DATA_DIR}/dendrite/jetstream:/var/dendrite/jetstream
|
||||
- ${BASE_DATA_DIR}/dendrite/search-index:/var/dendrite/searchindex
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- internal
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
internal:
|
||||
attachable: true
|
||||
|
Loading…
Reference in New Issue