Compare commits
2 Commits
4c782501d2
...
74669830b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
74669830b4
|
|||
|
001e0fc3a1
|
8
compose/dendrite/.env.example
Normal file
8
compose/dendrite/.env.example
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
POSTGRES_DATA_PATH="../../volumes/dendrite/postgres"
|
||||||
|
POSTGRES_PASSWORD="SUPER_SECRET_PASSWORD"
|
||||||
|
DENDRITE_HTTP_PORT="8008"
|
||||||
|
DENDRITE_HTTPS_PORT="8448"
|
||||||
|
DENDRITE_CONFIG_PATH="../../volumes/dendrite/config"
|
||||||
|
DENDRITE_MEDIA_PATH="../../volumes/dendrite/dendrite/media"
|
||||||
|
DENDRITE_JETSTREAM_PATH="../../volumes/dendrite/dendrite/jetstream"
|
||||||
|
DENDRITE_SEARCH_INDEX_PATH="../../volumes/dendrite/dendrite/search_index"
|
||||||
40
compose/dendrite/docker-compose.yml
Normal file
40
compose/dendrite/docker-compose.yml
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
hostname: postgres
|
||||||
|
image: postgres:15-alpine
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- "${POSTGRES_DATA_PATH:?}:/var/lib/postgresql/data"
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:?}"
|
||||||
|
POSTGRES_USER: dendrite
|
||||||
|
POSTGRES_DATABASE: dendrite
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U dendrite"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
|
monolith:
|
||||||
|
hostname: monolith
|
||||||
|
image: ghcr.io/element-hq/dendrite-monolith:latest
|
||||||
|
ports:
|
||||||
|
- "${DENDRITE_HTTP_PORT:-8008}:8008"
|
||||||
|
- "${DENDRITE_HTTPS_PORT:-8448}:8448"
|
||||||
|
volumes:
|
||||||
|
- "${DENDRITE_CONFIG_PATH:?}:/etc/dendrite"
|
||||||
|
- "${DENDRITE_MEDIA_PATH:?}:/var/dendrite/media"
|
||||||
|
- "${DENDRITE_JETSTREAM_PATH:?}:/var/dendrite/jetstream"
|
||||||
|
- "${DENDRITE_SEARCH_INDEX_PATH:?}:/var/dendrite/searchindex"
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
attachable: true
|
||||||
5
setup.sh
5
setup.sh
@@ -24,6 +24,11 @@ volumes=(
|
|||||||
crafty/servers
|
crafty/servers
|
||||||
crafty/config
|
crafty/config
|
||||||
crafty/import
|
crafty/import
|
||||||
|
dendrite/postgres
|
||||||
|
dendrite/config
|
||||||
|
dendrite/dendrite/media
|
||||||
|
dendrite/dendrite/jetstream
|
||||||
|
dendrite/dendrite/search_index
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir -p "$volumes_root"
|
mkdir -p "$volumes_root"
|
||||||
|
|||||||
Reference in New Issue
Block a user