Remove unused 'cleanmedia' service and update user to 'synapse'
This commit is contained in:
parent
66b0374d00
commit
70d85b0409
@ -86,16 +86,3 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 1
|
retries: 1
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
|
|
||||||
cleanmedia:
|
|
||||||
hostname: cleanmedia
|
|
||||||
image: rogsme/cleanmedia
|
|
||||||
volumes:
|
|
||||||
- ./config/dendrite:/etc/dendrite
|
|
||||||
- ./config/media:/var/dendrite/media
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
environment:
|
|
||||||
- CRON=0 0 * * *
|
|
||||||
- CLEANMEDIA_OPTS=-c /etc/dendrite/dendrite.yaml -t 30 -l
|
|
||||||
depends_on:
|
|
||||||
- monolith
|
|
||||||
|
@ -9,7 +9,7 @@ fi
|
|||||||
|
|
||||||
# Define database names and user
|
# Define database names and user
|
||||||
DATABASES=("whatsapp" "telegram" "discord")
|
DATABASES=("whatsapp" "telegram" "discord")
|
||||||
USER="dendrite"
|
USER="synapse"
|
||||||
|
|
||||||
# Create databases and grant permissions
|
# Create databases and grant permissions
|
||||||
for DB in "${DATABASES[@]}"; do
|
for DB in "${DATABASES[@]}"; do
|
||||||
|
2
setup.sh
2
setup.sh
@ -24,6 +24,6 @@ docker compose run --rm \
|
|||||||
SHARED_SECRET=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 50)
|
SHARED_SECRET=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 50)
|
||||||
echo
|
echo
|
||||||
echo "Registration shared secret: $SHARED_SECRET"
|
echo "Registration shared secret: $SHARED_SECRET"
|
||||||
echo "Database URI: postgres://dendrite:$DB_PASSWORD@postgres/dendrite?sslmode=disable"
|
echo "Database URI: postgres://synapse:$DB_PASSWORD@postgres/synapse?sslmode=disable"
|
||||||
echo
|
echo
|
||||||
echo "Make sure to save this information securely!"
|
echo "Make sure to save this information securely!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user