-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
89 lines (89 loc) · 1.85 KB
/
docker-compose.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.2"
services:
ccnet:
build: ./seafile_dev_docker
image: seafile:dev
expose:
- 13419
depends_on:
- db
command:
- dockerize
- -timeout
- '20s'
- -wait
- tcp://db:3306
- /opt/seafile/seafile-server-latest/seafile/bin/ccnet-server
- -F
- /opt/seafile/conf
- -c
- /opt/seafile/ccnet
- -f
- /opt/seafile/logs/ccnet.log
- -P
- /opt/seafile/pids/ccnet.pid
volumes:
- "sockets:/opt/seafile/sockets"
- tmp:/tmp
seafile-server:
ports:
- 8082:8082
image: seafile:dev
depends_on:
- ccnet
command:
- dockerize
- -wait
- tcp://db:3306
- -wait
- unix:///opt/seafile/sockets/ccnet.sock
- -timeout
- '20s'
- -stdout
- /opt/seafile/logs/seafile.log
- /opt/seafile/seafile-server-latest/seafile/bin/seaf-server
- -F
- /opt/seafile/conf
- -c
- /opt/seafile/ccnet
- -d
- /opt/seafile/data
- -l
- /opt/seafile/logs/seafile.log
- -P
- /opt/seafile/pids/seaf-server.pid
- -f
volumes:
- "sockets:/opt/seafile/sockets"
- tmp:/tmp
seahub:
ports:
- 8000:8000
image: seafile:dev
depends_on:
- seafile-server
environment:
SEAHUB_LOG_DIR: /opt/seafile/logs/
command:
- dockerize
- -wait
- tcp://seafile-server:8082
- -timeout
- '20s'
- -stderr
- /opt/seafile/logs/seahub.log
- /bin/bash
- /opt/seafile/start-seahub.sh
volumes:
- "sockets:/opt/seafile/sockets"
- tmp:/tmp
db:
image: mysql:5
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_USER: seafile
volumes:
- ./mysql/setup/:/docker-entrypoint-initdb.d:z
volumes:
sockets:
tmp: