-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.yml
65 lines (65 loc) · 1.6 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
version: '2'
services:
apinf:
image: apinf/platform
restart: always
mem_limit: 300m
env_file:
- 'docker/apinf/env'
environment:
- MONGO_URL=mongodb://mongo/apinf_db
depends_on:
- mongo
- ssl
links:
- elasticsearch:elasticsearch.docker
apiumbrella:
image: nrel/api-umbrella:0.13.0
restart: always
mem_limit: 800m
command: bash -c "apt-get update && apt-get install -qq -y --no-install-recommends curl && api-umbrella run"
volumes:
- ./docker/api-umbrella/config:/etc/api-umbrella
- letsencrypt:/etc/letsencrypt
- apiumbrella_db:/opt/api-umbrella/var/db
- apiumbrella_log:/opt/api-umbrella/var/log
ports:
- "3001:3001"
- "3002:3002"
depends_on:
- ssl
links:
- elasticsearch:elasticsearch.docker
mongo:
restart: always
mem_limit: 200m
image: mongo:3.2.6
command: --storageEngine wiredTiger
ssl:
restart: always
image: opencapacity/lets-nginx:1.3
env_file:
- 'docker/ssl/env'
environment:
- UPSTREAM=apinf:3000
ports:
- "443:443"
- "80:80"
volumes:
- letsencrypt:/etc/letsencrypt
- letsencrypt_backups:/var/lib/letsencrypt
- dhparam_cache:/cache
elasticsearch:
image: elasticsearch:2.4
restart: always
mem_limit: 300m
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
command: elasticsearch -Des.index.max_result_window=50000
volumes:
letsencrypt: {}
letsencrypt_backups: {}
dhparam_cache: {}
elasticsearch_data: {}
apiumbrella_db: {}
apiumbrella_log: {}