Remove unused 'cleanmedia' service and update user to 'synapse'

This commit is contained in:
Roger Gonzalez 2025-01-31 11:27:13 -03:00
parent 66b0374d00
commit 70d85b0409
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
3 changed files with 2 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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!"