self-hosted-cookbook/apps/cloud/seafile.md

69 lines
1.7 KiB
Markdown
Raw Normal View History

2020-10-18 19:40:16 +00:00
# Seafile
2023-01-08 23:55:35 +00:00
- Very simple, just raw files nothing more.
2020-10-18 19:40:16 +00:00
- Has mobile apps.
<br>
- [Homepage](https://www.seafile.com/en/home/)
- [Github repo](https://github.com/haiwen/seafile)
- [DockerHub repo](https://hub.docker.com/r/seafileltd/seafile-mc)
2023-01-08 23:55:35 +00:00
- [Docs](https://manual.seafile.com/docker/deploy_seafile_with_docker/)
2020-10-18 19:40:16 +00:00
2023-01-08 22:45:53 +00:00
![Screenshot](seafile.png)
2020-10-18 19:40:16 +00:00
## docker-compose.yml
2023-01-08 23:55:35 +00:00
Original file [here](https://download.seafile.com/d/320e8adf90fa43ad8fee/files/?p=/docker/docker-compose.yml).
2020-10-18 19:40:16 +00:00
```yml
2023-01-08 23:55:35 +00:00
---
2020-10-18 19:40:16 +00:00
services:
db:
2023-01-08 23:55:35 +00:00
image: mariadb:10.5
2020-10-18 19:40:16 +00:00
container_name: seafile-mysql
environment:
2023-01-08 23:55:35 +00:00
- MYSQL_ROOT_PASSWORD=db_dev
- MYSQL_LOG_CONSOLE=false
2020-10-18 19:40:16 +00:00
volumes:
2023-01-08 23:55:35 +00:00
- ./db:/var/lib/mysql
2020-10-18 19:40:16 +00:00
memcached:
2023-01-08 23:55:35 +00:00
image: memcached:1.6
2020-10-18 19:40:16 +00:00
container_name: seafile-memcached
entrypoint: memcached -m 256
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
depends_on:
- db
- memcached
2023-01-08 23:55:35 +00:00
environment:
- DB_HOST=db
- DB_USER=root
- DB_ROOT_PASSWD=db_dev
- TIME_ZONE=Europe/Dublin
- SEAFILE_ADMIN_EMAIL=me@example.com
- SEAFILE_ADMIN_PASSWORD=asecret
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=docs.seafile.com
ports:
- "3123:80"
volumes:
- ./data:/shared
2020-10-18 19:40:16 +00:00
```
2023-01-08 23:55:35 +00:00
**Important**: Variable `SEAFILE_SERVER_HOSTNAME` must be set for the file upload to work correctly.
If you're running it locally, set it to your server's IP:port, e.g. `192.168.1.123:3123`.
## Tips & tricks
### Dark theme
1. Copy the css from here: https://github.com/udlch/seafile_ce-edition_custom_theme/blob/master/sf_dark_theme_7.1.3.css
2. Check the box in: `System Admin / Settings / Use custom CSS`
3. Paste the css into the `Custom CSS` box
4. Save