mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2025-05-13 02:41:16 +00:00
seafile
This commit is contained in:
parent
f991d4fb39
commit
08276b0e6c
@ -96,6 +96,7 @@ The aims is to provide a ready-to-run recipes that you can just copy, paste and
|
|||||||
# Cloud & File Sharing
|
# Cloud & File Sharing
|
||||||
- [FileRun](apps/cloud/filerun.md)
|
- [FileRun](apps/cloud/filerun.md)
|
||||||
- [NextCloud](apps/cloud/nextcloud.md)
|
- [NextCloud](apps/cloud/nextcloud.md)
|
||||||
|
- [oasis](apps/cloud/oasis.md)
|
||||||
- [Pydio](apps/cloud/pydio.md)
|
- [Pydio](apps/cloud/pydio.md)
|
||||||
- [Seafile](apps/cloud/seafile.md)
|
- [Seafile](apps/cloud/seafile.md)
|
||||||
|
|
||||||
|
31
apps/cloud/oasis.md
Normal file
31
apps/cloud/oasis.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Seafile
|
||||||
|
|
||||||
|
- UX needs work.
|
||||||
|
- Drag & drop upload doesn't work in Safari
|
||||||
|
- Extremely basic in functionality
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
- [Github repo](https://github.com/machengim/oasis)
|
||||||
|
- [DockerHub repo](https://hub.docker.com/r/machengim/oasis)
|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## docker-compose.yml
|
||||||
|
```yml
|
||||||
|
---
|
||||||
|
services:
|
||||||
|
oasis:
|
||||||
|
image: machengim/oasis
|
||||||
|
container_name: oasis
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Dublin
|
||||||
|
ports:
|
||||||
|
- "3123:8000"
|
||||||
|
volumes:
|
||||||
|
- ./data:/opt/oasis/data
|
||||||
|
- ./storage:/home/storage
|
||||||
|
```
|
BIN
apps/cloud/oasis.png
Normal file
BIN
apps/cloud/oasis.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 152 KiB |
@ -1,5 +1,5 @@
|
|||||||
# Seafile
|
# Seafile
|
||||||
- Too simple, just raw files nothing more.
|
- Very simple, just raw files nothing more.
|
||||||
- Has mobile apps.
|
- Has mobile apps.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@ -7,55 +7,62 @@
|
|||||||
- [Homepage](https://www.seafile.com/en/home/)
|
- [Homepage](https://www.seafile.com/en/home/)
|
||||||
- [Github repo](https://github.com/haiwen/seafile)
|
- [Github repo](https://github.com/haiwen/seafile)
|
||||||
- [DockerHub repo](https://hub.docker.com/r/seafileltd/seafile-mc)
|
- [DockerHub repo](https://hub.docker.com/r/seafileltd/seafile-mc)
|
||||||
- [Docs](https://download.seafile.com/d/320e8adf90fa43ad8fee/files/?p=%2Findex.md)
|
- [Docs](https://manual.seafile.com/docker/deploy_seafile_with_docker/)
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
Original file [here](https://download.seafile.com/d/320e8adf90fa43ad8fee/files/?p=/docker/docker-compose.yml).
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
version: '2.0'
|
---
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.1
|
image: mariadb:10.5
|
||||||
container_name: seafile-mysql
|
container_name: seafile-mysql
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=db_dev # Requested, set the root's password of MySQL service.
|
- MYSQL_ROOT_PASSWORD=db_dev
|
||||||
- MYSQL_LOG_CONSOLE=true
|
- MYSQL_LOG_CONSOLE=false
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
|
- ./db:/var/lib/mysql
|
||||||
networks:
|
|
||||||
- seafile-net
|
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
image: memcached:1.5.6
|
image: memcached:1.6
|
||||||
container_name: seafile-memcached
|
container_name: seafile-memcached
|
||||||
entrypoint: memcached -m 256
|
entrypoint: memcached -m 256
|
||||||
networks:
|
|
||||||
- seafile-net
|
|
||||||
|
|
||||||
seafile:
|
seafile:
|
||||||
image: seafileltd/seafile-mc:latest
|
image: seafileltd/seafile-mc:latest
|
||||||
container_name: seafile
|
container_name: seafile
|
||||||
ports:
|
|
||||||
- "8080:80"
|
|
||||||
# - "443:443" # If https is enabled, cancel the comment.
|
|
||||||
volumes:
|
|
||||||
- ./data:/shared # Requested, specifies the path to Seafile data persistent store.
|
|
||||||
environment:
|
|
||||||
- DB_HOST=db
|
|
||||||
- DB_ROOT_PASSWD=db_dev # Requested, the value shuold be root's password of MySQL service.
|
|
||||||
- TIME_ZONE=Europe/Dublin # Optional, default is UTC. Should be uncomment and set to your local time zone.
|
|
||||||
- SEAFILE_ADMIN_EMAIL=me@example.com # Specifies Seafile admin user, default is 'me@example.com'.
|
|
||||||
- SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is 'asecret'.
|
|
||||||
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
|
|
||||||
- SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- memcached
|
- memcached
|
||||||
networks:
|
environment:
|
||||||
- seafile-net
|
- DB_HOST=db
|
||||||
|
- DB_USER=root
|
||||||
networks:
|
- DB_ROOT_PASSWD=db_dev
|
||||||
seafile-net:
|
- 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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**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
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 304 KiB After Width: | Height: | Size: 322 KiB |
Loading…
Reference in New Issue
Block a user