-
Notifications
You must be signed in to change notification settings - Fork 85
/
docker-compose.yml
64 lines (60 loc) · 2.13 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3'
services:
db:
image: mariadb:10.5
container_name: seafile-mysql
restart: unless-stopped
volumes:
- ./seafile-mysql/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWD} # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
networks:
- seafile-net
labels:
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
memcached:
image: memcached:latest
container_name: seafile-memcached
restart: unless-stopped
entrypoint: memcached -m 256
networks:
- seafile-net
labels:
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
restart: unless-stopped
volumes:
- ./shared:/shared
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=${DB_ROOT_PASSWD} # Requested, the value shuold be root's password of MySQL service.
- SEAFILE_ADMIN_EMAIL=${SEAFILE_ADMIN_EMAIL} # Specifies Seafile admin user, default is '[email protected]'.
- SEAFILE_ADMIN_PASSWORD=${SEAFILE_ADMIN_PASSWORD} # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=${TRAEFIK_SEAFILE} # Specifies your host name if https is enabled.
- SEAFILE_SERVICE_URL=https://${TRAEFIK_SEAFILE}
networks:
- proxy
- seafile-net
depends_on:
- db
- memcached
labels:
- "traefik.enable=true"
- "traefik.http.routers.seafile.rule=Host(`${TRAEFIK_SEAFILE}`)"
- "traefik.http.routers.seafile.entrypoints=https"
- "traefik.http.routers.seafile.tls=true"
- "traefik.http.routers.seafile.tls.certresolver=mydnschallenge"
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
# Ip filtering
- "traefik.http.routers.seafile.middlewares=whitelist@file"
networks:
seafile-net:
proxy:
external: true