-
Notifications
You must be signed in to change notification settings - Fork 147
/
docker-compose.yml
117 lines (110 loc) · 2.77 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '2'
services:
esn:
container_name: esn
image: linagora/esn:1.9.0-rc8
ports:
- "8080:8080"
volumes:
- ./docker/config:/var/www/docker/config:ro
environment:
- DOCKER_IP=localhost
- PROVISION=${PROVISION}
- CONFIG_DIR=/var/www/docker/config
- MONGO_HOST=mongo
- MONGO_PORT=27017
- MONGO_DBNAME=esn_docker
- MONGO_TIMEOUT=100000
- REDIS_HOST=redis
- REDIS_PORT=6379
- AMQP_HOST=rabbitmq
- AMQP_PORT=5672
- AMQP_PROTOCOL=amqp
- AMQP_USERNAME=guest
- AMQP_PASSWORD=guest
- WEB_HOST=${DOCKER_IP}
- WEB_PORT=8080
- DAV_SERVER_HOST=sabre
- DAV_SERVER_PORT=80
- ELASTICSEARCH_HOST=elasticsearch
- ELASTICSEARCH_PORT=9200
- ELASTICSEARCH_INIT_TIMEOUT=${ELASTICSEARCH_INIT_TIMEOUT}
- JMAP_SERVER_HOST=${DOCKER_IP}
- JMAP_SERVER_PORT=1080
- MAIL_BROWSER=false
- SMTP_HOST=${DOCKER_IP}
- SMTP_PORT=1025
- JAMES_WEBADMIN_HOST=${DOCKER_IP}
- JAMES_WEBADMIN_PORT=8000
links:
- redis
- mongo
- rabbitmq
- sabre
- elasticsearch
redis:
container_name: esn_redis
image: redis:latest
ports:
- "6379:6379"
rabbitmq:
container_name: esn_rabbitmq
image: rabbitmq:3.6.5-management
hostname: esn-rabbit
ports:
- 5672:5672
- 15672:15672
mongo:
container_name: esn_mongo
image: mongo:3.2
command: ["mongod", "--smallfiles"]
ports:
- "27017:27017"
elasticsearch:
container_name: esn_elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
ports:
- "9200:9200"
environment:
- ELASTICSEARCH_INIT_TIMEOUT=${ELASTICSEARCH_INIT_TIMEOUT}
- discovery.type=single-node
sabre:
container_name: esn_sabre
image: linagora/esn-sabre:1.9.0-rc8
ports:
- "8001:80"
environment:
- SABRE_MONGO_HOST=mongo
- SABRE_MONGO_PORT=27017
- ESN_MONGO_HOST=mongo
- ESN_MONGO_PORT=27017
- ESN_MONGO_DBNAME=esn_docker
- MONGO_TIMEOUT=100000
- ESN_HOST=esn
- ESN_PORT=8080
- REDIS_HOST=redis
- REDIS_PORT=6379
- AMQP_HOST=rabbitmq
- AMQP_PORT=5672
links:
- mongo
volumes:
- ${ESN_PATH}/docker/config/jwt/public:/var/www/config/esn.key.pub
james:
container_name: esn_james
image: linagora/james-memory:tmail-0.1.0
hostname: open-paas.org
depends_on:
- esn # to have configuration ready in shared volume
ports:
- "1080:80"
- "1025:25"
- "1110:110"
- "1143:143"
- "1465:465"
- "1587:587"
- "1993:993"
- "8000:8000"
volumes:
- ./docker/config/james:/root/conf
- ./docker/config/jwt/public:/root/conf/jwt_publickey