-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 970 Bytes
/
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
version: '2'
services:
elasticsearch:
image: commonsearch/local-elasticsearch
urlserver:
image: commonsearch/local-back
command: python urlserver/server.py
volumes:
- .:/cosr/back:rw
working_dir: /cosr/back
depends_on:
- elasticsearch
links:
- elasticsearch
environment:
# Use the elasticsearch instance running the linked container
- "COSR_ELASTICSEARCHDOCS=elasticsearch:9200"
- "COSR_ELASTICSEARCHTEXT=elasticsearch:9200"
cosrback:
image: commonsearch/local-back
command: bash
environment:
- "TRAVIS"
- "TRAVIS_BRANCH"
- "TRAVIS_JOB_ID"
- "COSR_ENV"
- "TERM=xterm-256color"
- "COSR_ELASTICSEARCHDOCS=elasticsearch:9200"
- "COSR_ELASTICSEARCHTEXT=elasticsearch:9200"
depends_on:
- elasticsearch
- urlserver
links:
- elasticsearch
- urlserver
volumes:
- .:/cosr/back:rw
working_dir: /cosr/back