forked from lambdalab/lambdalab-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (121 loc) · 3.13 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
118
119
120
121
version: '2'
services:
tools:
image: "${REGISTRY}lambdalab/tools:${VERSION}"
container_name: 'tools'
volumes:
- /lambda_home/
- ./android-sdk-linux:/lambda_home/tools/android-sdk
db:
image: '${REGISTRY}library/mongo:3.2'
entrypoint:
- mongod
- --dbpath
- /data/db
- --logpath
- /logs/mongo.log
- --httpinterface
- --rest
- --setParameter
- failIndexKeyTooLong=false
volumes:
- ./data/mongodb/db:/data/db
- ./logs/mongodb:/logs
ports:
- 27017:27017 # TODO hide this port in the future
- 28017:28017
redis: # TODO mount redis disk volume
image: '${REGISTRY}library/redis:3.2'
command:
- --bind 0.0.0.0
elasticsearch:
image: '${REGISTRY}lambdalab/elasticsearch:${VERSION}'
volumes:
- ./data/elasticsearch:/lambda_home/data/elasticsearch
- ./configs:/lambda_home/configs
- ./logs/elasticsearch:/lambda_home/data/logs
ports:
- 9200:9200
jenkins:
image: '${REGISTRY}lambdalab/jenkins:0.2'
environment:
- TOOLS_MOUNT=--volumes-from=tools
- HOST_JOBS=${PWD}/data/jenkins_home/jobs
volumes:
- ./data/jenkins_home/jobs:/var/jenkins_home/jobs
- /var/run/docker.sock:/var/run/docker.sock
volumes_from:
- tools
ports:
- 8080:8080
- 50000:50000
depends_on:
- build_env
dataservice:
image: '${REGISTRY}lambdalab/dataservice:${VERSION}'
depends_on:
- db
volumes:
- ./data/projects:/lambda_home/data/projects
- ./logs:/lambda_home/logs
- ./configs:/lambda_home/configs
projectservice:
image: '${REGISTRY}lambdalab/projectservice:${VERSION}'
depends_on:
- db
environment:
- JAVA_OPTS=-Dvars.jenkins.dockerImage=local/build_environment
volumes:
- ./data/projects:/lambda_home/data/projects
- ./logs:/lambda_home/logs
- ./configs:/lambda_home/configs
- ~/.ssh:/root/.ssh
liaceservice:
image: '${REGISTRY}lambdalab/liaceservice:${VERSION}'
depends_on:
- db
- elasticsearch
volumes:
- ./configs:/lambda_home/configs
- ./logs:/lambda_home/logs
metadataservice:
image: '${REGISTRY}lambdalab/metadataservice:${VERSION}'
depends_on:
- db
volumes:
- ./configs:/lambda_home/configs
- ./logs:/lambda_home/logs
ports:
- 10060:10060
pygments:
image: '${REGISTRY}lambdalab/pygments:${VERSION}'
depends_on:
- db
volumes:
- ./configs:/lambda_home/configs
- ./logs:/lambda_home/logs
codatlas:
image: '${REGISTRY}lambdalab/codatlas:${VERSION}'
depends_on:
- db
- redis
volumes:
- ./configs:/lambda_home/configs
- ./logs:/lambda_home/logs
- ./certs:/lambda_home/certs
ports:
- 9000:9000
nginx:
image: '${REGISTRY}library/nginx:1.10'
depends_on:
- codatlas
ports:
- 80:80
volumes:
- ./sites-available:/etc/nginx/conf.d
- ./docs:/lambda_home/docs
- ./plugins:/lambda_home/plugins
build_env:
build:
context: ./build_environment/${REGISTRY}
image: local/build_environment