-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseafile-docker-compose.yml
39 lines (33 loc) · 1.36 KB
/
seafile-docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3'
services:
db:
image: mariadb:10.5
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- seafile-mysql:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
memcached:
image: memcached:1.5.6
entrypoint: memcached -m 256
seafile:
image: seafileltd/seafile-mc:latest
ports:
- 9090:80
# - "443:443" # If https is enabled, cancel the comment.
volumes:
- seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=${MYSQL_ROOT_PASSWORD} # Requested, the value shuold be root's password of MySQL service.
- TIME_ZONE=Etc/GMT+8 # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=${EMAIL} # Specifies Seafile admin user, default is '[email protected]'.
- SEAFILE_ADMIN_PASSWORD=${ADMIN_PASSWORD} # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=wgseafile.duckdns.org # Specifies your host name if https is enabled.
depends_on:
- db
- memcached
volumes:
seafile-mysql:
seafile-data: