forked from SonicCloudOrg/sonic-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose2.yml
100 lines (99 loc) · 2.31 KB
/
docker-compose2.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:
sonic-server-zookeeper:
image: "zookeeper:latest"
networks:
- sonic-network
environment:
- ZOO_TICK_TIME=100
- ZOO_ADMINSERVER_ENABLED=false
ports:
- "${ZOOKEEPER_PORT}:2181"
sonic-server-gateway:
image: "sonicorg/sonic-server-gateway:v1.4.0-rc"
environment:
- SONIC_GATEWAY_PORT
- ZOOKEEPER_HOST
- ZOOKEEPER_PORT
- SECRET_KEY
- EXPIRE_DAY
volumes:
- ./logs/:/logs/
depends_on:
- sonic-server-zookeeper
networks:
- sonic-network
ports:
- "${SONIC_GATEWAY_PORT}:${SONIC_GATEWAY_PORT}"
restart: on-failure
sonic-server-controller:
image: "sonicorg/sonic-server-controller:v1.4.0-rc"
environment:
- ZOOKEEPER_HOST
- ZOOKEEPER_PORT
- MYSQL_HOST
- MYSQL_PORT
- MYSQL_DATABASE
- MYSQL_USERNAME
- MYSQL_PASSWORD
- SERVER_HOST
- SONIC_GATEWAY_PORT
- SONIC_CONTROLLER_PORT
- CLIENT_HOST
- DUBBO_PORT
- SECRET_KEY
- EXPIRE_DAY
- REGISTER_ENABLE
- NORMAL_USER_ENABLE
- LDAP_USER_ENABLE
- LDAP_USER_ID
- LDAP_BASE_DN
- LDAP_BASE
- LDAP_USERNAME
- LDAP_PASSWORD
- LDAP_URL
networks:
- sonic-network
volumes:
- ./logs/:/logs/
depends_on:
- sonic-server-zookeeper
ports:
- "${SONIC_CONTROLLER_PORT}:${SONIC_CONTROLLER_PORT}"
- "${DUBBO_PORT}:${DUBBO_PORT}"
restart: on-failure
sonic-server-folder:
image: "sonicorg/sonic-server-folder:v1.4.0-rc"
environment:
- SERVER_HOST
- SONIC_GATEWAY_PORT
- SONIC_FOLDER_PORT
- ZOOKEEPER_HOST
- ZOOKEEPER_PORT
- SECRET_KEY
- EXPIRE_DAY
networks:
- sonic-network
volumes:
- ./keepFiles/:/keepFiles/
- ./imageFiles/:/imageFiles/
- ./recordFiles/:/recordFiles/
- ./packageFiles/:/packageFiles/
- ./logs/:/logs/
depends_on:
- sonic-server-zookeeper
restart: on-failure
ports:
- "${SONIC_FOLDER_PORT}:${SONIC_FOLDER_PORT}"
sonic-client-web:
image: "sonicorg/sonic-client-web:v1.4.0-rc"
environment:
- SERVER_HOST
- SONIC_GATEWAY_PORT
networks:
- sonic-network
ports:
- "${SONIC_CLIENT_PORT}:80"
networks:
sonic-network:
driver: bridge