Hi all,
I am trying to install Seafile CE 11 on TrueNAS using the official docker-compose file provided in the instructions here in this page 11.0/docker/deploy_seafile_with_docker/ but I am having trouble.
Checking the seafile container logs it seems to not be able to connect to the database with connection refused. Checking the database container, a similar message (meaning at least the containers can talk to each other).
This is the file I started with:
services:
db:
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=REDACTED
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
image: mariadb:10.11
volumes:
- /mnt/Pool/seafile/db:/var/lib/mysql
memcached:
container_name: seafile-memcached
entrypoint: memcached -m 256
image: memcached:1.6.18
seafile:
container_name: seafile
depends_on:
- db
- memcached
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=REDACTED
- SEAFILE_ADMIN_EMAIL=REDACTED
- SEAFILE_ADMIN_PASSWORD=REDACTED
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=docs.REDACTED
image: seafileltd/seafile-mc:11.0-latest
ports:
- '10763:80'
volumes:
- /mnt/Pool/seafile/data:/shared
I made some modifications and asked ChatGPT and this is my current version:
name: seafile
networks:
seafile-net:
attachable: False
driver: bridge
external: False
services:
db:
environment:
- MYSQL_ROOT_PASSWORD="REDACTED" # in quotes now
- MYSQL_LOG_CONSOLE=true
image: mariadb:10.11
networks:
- seafile-net
volumes:
- /mnt/Pool/seafile/db:/var/lib/mysql
memcached:
entrypoint:
- memcached
- '-m'
- '256'
image: memcached:latest
networks:
- seafile-net
seafile:
depends_on:
- db
- memcached
environment:
- DB_HOST=db
- DB_ROOT_PASSWD="REDACTED" # in quotes now
- TIME_ZONE=Etc/UTC
- SEAFILE_ADMIN_EMAIL=REDACTED
- SEAFILE_ADMIN_PASSWORD=REDACTED
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=docs.REDACTED
image: seafileltd/seafile-mc:latest
networks:
- seafile-net
ports:
- '10763:80'
volumes:
- /mnt/Pool/seafile/data:/shared
Still the exact same error, connection refused:
2025-05-13 11:20:13.606342+00:00Error: Failed to connect to mysql database seahub_db: Access denied for user 'seafile'@'fdd0:0:0:10::4' (using password: YES)
Any tips to help out appreciated.
Also a but off-topic, what’s going on with not allowing create a forum user with a gmail address?
Thanks!