-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
100 lines (100 loc) · 3.29 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
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
90
91
92
93
94
95
96
97
98
99
100
version: '3'
services:
onlyoffice-mysql-server:
container_name: onlyoffice-mysql-server
image: mysql:5.7.21
hostname: onlyoffice-community-server
environment:
- MYSQL_ROOT_PASSWORD=office@admin123456
ports:
- '3306:3306'
networks:
- onlyoffice
stdin_open: true
tty: true
restart: always
volumes:
- ./mysql/conf.d:/etc/mysql/conf.d
- ./mysql/initdb.d:/docker-entrypoint-initdb.d
- ./mysql/data:/var/lib/mysql
onlyoffice-community-server:
container_name: onlyoffice-community-server
image: onlyoffice/communityserver:10.0.4.959
hostname: onlyoffice-community-server
depends_on:
- onlyoffice-mysql-server
- onlyoffice-document-server
- onlyoffice-mail-server
environment:
- DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server
- MYSQL_SERVER_ROOT_PASSWORD=office@admin123456
- MYSQL_SERVER_DB_NAME=onlyoffice
- MYSQL_SERVER_HOST=onlyoffice-mysql-server
- MYSQL_SERVER_USER=community
- MYSQL_SERVER_PASS=office@com123456
- MAIL_SERVER_API_PORT=8081
- MAIL_SERVER_API_HOST=onlyoffice-mail-server
- MAIL_SERVER_DB_HOST=onlyoffice-mysql-server
- MAIL_SERVER_DB_PORT=3306
- MAIL_SERVER_DB_NAME=onlyoffice_mailserver
- MAIL_SERVER_DB_USER=mail
- MAIL_SERVER_DB_PASS=office@mail123456
networks:
- onlyoffice
ports:
- '80:80'
- '443:443'
- '5222:5222'
stdin_open: true
tty: true
restart: always
volumes:
- ./community/data:/var/www/onlyoffice/Data
- ./community/log:/var/log/onlyoffice
- ./community/document/data:/var/www/onlyoffice/DocumentServerData
- ./community/certs:/var/www/onlyoffice/Data/certs
onlyoffice-document-server:
container_name: onlyoffice-document-server
image: onlyoffice/documentserver:5.4.1.39
hostname: onlyoffice-document-server
stdin_open: true
tty: true
restart: always
networks:
- onlyoffice
expose:
- '80'
- '443'
volumes:
- ./document/data:/var/www/onlyoffice/Data
- ./document/log:/var/log/onlyoffice
- ./document/fonts:/usr/share/fonts/truetype/custom
- ./document/forgotten:/var/lib/onlyoffice/documentserver/App_Data/cache/files/forgotten
onlyoffice-mail-server:
container_name: onlyoffice-mail-server
image: onlyoffice/mailserver:1.6.60
depends_on:
- onlyoffice-mysql-server
hostname: mail.qj.com
environment:
- MYSQL_SERVER=onlyoffice-mysql-server
- MYSQL_SERVER_PORT=3306
- MYSQL_ROOT_USER=root
- MYSQL_ROOT_PASSWD=office@admin123456
- MYSQL_SERVER_DB_NAME=onlyoffice_mailserver
networks:
- onlyoffice
restart: always
privileged: true
ports: ['25:25','143:143','587:587']
stdin_open: true
tty: true
expose:
- '8081'
volumes:
- ./mail/data:/var/vmail
- ./mail/certs:/etc/pki/tls/mailserver
- ./mail/log:/var/log
networks:
onlyoffice:
driver: 'bridge'