Files
homelab-optimized/docs/services/individual/seafile.md
Gitea Mirror Bot 82b69ea7e3
Some checks failed
Documentation / Build Docusaurus (push) Failing after 17m9s
Documentation / Deploy to GitHub Pages (push) Has been skipped
Sanitized mirror from private repository - 2026-03-21 07:31:47 UTC
2026-03-21 07:31:47 +00:00

243 lines
7.0 KiB
Markdown

# Seafile
**🟡 Productivity Service**
## 📋 Service Overview
| Property | Value |
|----------|-------|
| **Service Name** | seafile |
| **Host** | Calypso |
| **Category** | Productivity |
| **Difficulty** | 🟡 |
| **Docker Image** | `seafileltd/seafile-mc:13.0-latest` |
| **Compose File** | `Calypso/seafile-server.yaml` |
| **Directory** | `Calypso` |
## 🎯 Purpose
seafile is a productivity application that helps manage tasks, documents, or workflows.
## 🚀 Quick Start
### Prerequisites
- Docker and Docker Compose installed
- Basic understanding of REDACTED_APP_PASSWORD
- Access to the host system (Calypso)
### Deployment
```bash
# Navigate to service directory
cd Calypso
# Start the service
docker-compose up -d
# Check service status
docker-compose ps
# View logs
docker-compose logs -f seafile
```
## 🔧 Configuration
### Docker Compose Configuration
```yaml
container_name: Seafile
depends_on:
cache:
condition: service_started
db:
condition: service_started
redis:
condition: service_started
environment:
CACHE_PROVIDER: redis
ENABLE_SEADOC: true
FORCE_HTTPS_IN_CONF: true
INIT_SEAFILE_ADMIN_EMAIL: your-email@example.com
INIT_SEAFILE_ADMIN_PASSWORD: "REDACTED_PASSWORD"
INIT_SEAFILE_MYSQL_ROOT_PASSWORD: "REDACTED_PASSWORD"
JWT_PRIVATE_KEY: REDACTED_JWT_PRIVATE_KEY
REDIS_HOST: redis
REDIS_PASSWORD: "REDACTED_PASSWORD"
REDIS_PORT: 6379
SEADOC_IMAGE: seafileltd/sdoc-server:2.0-latest
SEADOC_SERVER_URL: https://sf.vishconcord.synology.me/sdoc-server
SEADOC_VOLUME: /opt/seadoc-data
SEAFILE_MYSQL_DB_CCNET_DB_NAME: ccnet_db
SEAFILE_MYSQL_DB_HOST: seafile-db
SEAFILE_MYSQL_DB_PASSWORD: "REDACTED_PASSWORD"
SEAFILE_MYSQL_DB_PORT: 3306
SEAFILE_MYSQL_DB_SEAFILE_DB_NAME: seafile_db
SEAFILE_MYSQL_DB_SEAHUB_DB_NAME: seahub_db
SEAFILE_MYSQL_DB_USER: seafileuser
SEAFILE_MYSQL_VOLUME: /opt/seafile-mysql/db
SEAFILE_SERVER_HOSTNAME: sf.vishconcord.synology.me
SEAFILE_SERVER_LETSENCRYPT: false
SEAFILE_SERVER_PROTOCOL: https
SEAFILE_VOLUME: /opt/seafile-data
TIME_ZONE: America/Los_Angeles
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost
hostname: seafile
image: seafileltd/seafile-mc:13.0-latest
ports:
- 8611:80
restart: on-failure:5
security_opt:
- no-new-privileges:false
user: 0:0
volumes:
- /volume1/docker/seafile/data:/shared:rw
```
### Environment Variables
| Variable | Value | Description |
|----------|-------|-------------|
| `INIT_SEAFILE_MYSQL_ROOT_PASSWORD` | `***MASKED***` | MySQL root password |
| `SEAFILE_MYSQL_DB_HOST` | `seafile-db` | Configuration variable |
| `SEAFILE_MYSQL_DB_USER` | `seafileuser` | Configuration variable |
| `SEAFILE_MYSQL_DB_PORT` | `3306` | Configuration variable |
| `SEAFILE_MYSQL_DB_PASSWORD` | `***MASKED***` | Configuration variable |
| `SEAFILE_MYSQL_DB_SEAFILE_DB_NAME` | `seafile_db` | Configuration variable |
| `SEAFILE_MYSQL_DB_CCNET_DB_NAME` | `ccnet_db` | Configuration variable |
| `SEAFILE_MYSQL_DB_SEAHUB_DB_NAME` | `seahub_db` | Configuration variable |
| `CACHE_PROVIDER` | `redis` | Configuration variable |
| `REDIS_HOST` | `redis` | Configuration variable |
| `REDIS_PORT` | `6379` | Configuration variable |
| `REDIS_PASSWORD` | `***MASKED***` | Redis authentication password |
| `TIME_ZONE` | `America/Los_Angeles` | Configuration variable |
| `SEAFILE_VOLUME` | `/opt/seafile-data` | Configuration variable |
| `SEAFILE_MYSQL_VOLUME` | `/opt/seafile-mysql/db` | Configuration variable |
| `INIT_SEAFILE_ADMIN_EMAIL` | `your-email@example.com` | Configuration variable |
| `INIT_SEAFILE_ADMIN_PASSWORD` | `***MASKED***` | Administrator password |
| `JWT_PRIVATE_KEY` | `***MASKED***` | Configuration variable |
| `SEADOC_VOLUME` | `/opt/seadoc-data` | Configuration variable |
| `SEADOC_IMAGE` | `seafileltd/sdoc-server:2.0-latest` | Configuration variable |
| `ENABLE_SEADOC` | `True` | Configuration variable |
| `SEADOC_SERVER_URL` | `https://sf.vishconcord.synology.me/sdoc-server` | Configuration variable |
| `SEAFILE_SERVER_HOSTNAME` | `sf.vishconcord.synology.me` | Configuration variable |
| `SEAFILE_SERVER_PROTOCOL` | `https` | Configuration variable |
| `FORCE_HTTPS_IN_CONF` | `True` | Configuration variable |
| `SEAFILE_SERVER_LETSENCRYPT` | `False` | Configuration variable |
### Port Mappings
| Host Port | Container Port | Protocol | Purpose |
|-----------|----------------|----------|----------|
| 8611 | 80 | TCP | HTTP web interface |
### Volume Mappings
| Host Path | Container Path | Type | Purpose |
|-----------|----------------|------|----------|
| `/volume1/docker/seafile/data` | `/shared` | bind | Data storage |
## 🌐 Access Information
### Web Interface
- **HTTP**: `http://Calypso:8611`
### Default Credentials
Refer to service documentation for default credentials
## 🔒 Security Considerations
- ✅ Security options configured
- ✅ Non-root user configured
## 📊 Resource Requirements
No resource limits configured
### Recommended Resources
- **Minimum RAM**: 512MB
- **Recommended RAM**: 1GB+
- **CPU**: 1 core minimum
- **Storage**: Varies by usage
### Resource Monitoring
Monitor resource usage with:
```bash
docker stats
```
## 🔍 Health Monitoring
✅ Health check configured
**Test Command**: `wget --no-verbose --tries=1 --spider http://localhost`
### Manual Health Checks
```bash
# Check container health
docker inspect --format='{{.State.Health.Status}}' CONTAINER_NAME
# View health check logs
docker inspect --format='{{range .State.Health.Log}}{{.Output}}{{end}}' CONTAINER_NAME
```
## 🚨 Troubleshooting
### Common Issues
**Service won't start**
- Check Docker logs: `docker-compose logs service-name`
- Verify port availability: `netstat -tulpn | grep PORT`
- Check file permissions on mounted volumes
**Can't access web interface**
- Verify service is running: `docker-compose ps`
- Check firewall settings
- Confirm correct port mapping
**Performance issues**
- Monitor resource usage: `docker stats`
- Check available disk space: `df -h`
- Review service logs for errors
### Useful Commands
```bash
# Check service status
docker-compose ps
# View real-time logs
docker-compose logs -f seafile
# Restart service
docker-compose restart seafile
# Update service
docker-compose pull seafile
docker-compose up -d seafile
# Access service shell
docker-compose exec seafile /bin/bash
# or
docker-compose exec seafile /bin/sh
```
## 📚 Additional Resources
- **Official Documentation**: Check the official docs for seafile
- **Docker Hub**: [seafileltd/seafile-mc:13.0-latest](https://hub.docker.com/r/seafileltd/seafile-mc:13.0-latest)
- **Community Forums**: Search for community discussions and solutions
- **GitHub Issues**: Check the project's GitHub for known issues
## 🔗 Related Services
Services REDACTED_APP_PASSWORD seafile:
- Nextcloud
- Paperless-NGX
- BookStack
- Syncthing
---
*This documentation is auto-generated from the Docker Compose configuration. For the most up-to-date information, refer to the official documentation and the actual compose file.*
**Last Updated**: 2025-11-17
**Configuration Source**: `Calypso/seafile-server.yaml`