Seafile Cloud in a Docker - https://www.seafile.com/
6.7K
Run command:
mysql:
docker run -d \
-e MYSQL_ROOT_PASSWORD=<password> \
--name seafile-db \
-v /opt/seafile-db:/var/lib/mysql \
mysql:5.5
seafile:
docker run -ti \
-p 8082:8082 \
-p 8000:8000 \
--link seafile-db:seafile-db \
--name seafile \
-v /opt/seafile:/data \
-e [email protected] \
-e ADMIN_PASSWD=<password> \
-e MYSQL_ROOT_PASSWD=<password> \
kvaps/seafile
docker-compose.yml
seafile:
restart: always
image: kvaps/seafile
hostname: seafile
domainname: example.org
volumes:
- /etc/localtime:/etc/localtime:ro
- ./seafile:/data
links:
- mysql:mysql
ports:
- 8082:8082
- 8000:8000
environment:
- [email protected]
- ADMIN_PASSWD=<password>
- MYSQL_ROOT_PASSWD=<password>
mysql:
restart: always
image: mysql:5.5
hostname: mysql
volumes:
- /etc/localtime:/etc/localtime:ro
- ./mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=<password>
I use pipework script for passthrough external ethernet cards into docker container
You can integrate seafile with my kolab docker image
Just follow these simple steps:
Create nginx config for seafile proxing in kolab container.
vi /opt/kolab-example.org/etc/nginx/conf.d/seafile.conf
server {
listen 80 default;
server_name example.org;
server_name_in_redirect off;
rewrite ^ https://$http_host$request_uri permanent; # enforce https redirect
}
server {
listen 443 ssl default;
server_name example.org;
ssl on;
ssl_certificate /etc/pki/tls/certs/mail.example.org.crt;
ssl_certificate_key /etc/pki/tls/private/mail.example.org.key;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
client_max_body_size 5g;
location / {
proxy_pass http://10.10.10.124:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://seafile-internal.BLARGH.com.au:8082;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
}
}
Next folow this instruction:
vi /opt/kolab-example.org/etc/roundcubemail/config.inc.php
# Force https redirect for http requests
$config['force_https'] = true;
# Seafile
$config['fileapi_backend'] = 'seafile';
$config['fileapi_seafile_host'] = "localhost";
$config['fileapi_seafile_ssl_verify_peer'] = false;
$config['fileapi_seafile_ssl_verify_host'] = false;
# Change the following basing on how much time you want data from Seafile cached
$config['fileapi_seafile_cache'] = '14d';
$config['fileapi_seafile_debug'] = true;
vi /opt/seafile-example.org/seafile/conf/ccnet.conf
[LDAP]
HOST = ldap://10.10.10.123
# Change the following to your primary domain base DN
BASE = ou=People,dc=example,dc=org
FILTER = &(objectclass=kolabinetorgperson)
# Put in the details of the Kolab service account
USER_DN = uid=kolab-service,ou=Special Users,dc=example,dc=org
PASSWORD = <password>
LOGIN_ATTR = mail
Content type
Image
Digest
Size
216.7 MB
Last updated
over 10 years ago
docker pull kvaps/seafile