-
Notifications
You must be signed in to change notification settings - Fork 59
/
docker-compose.yml
51 lines (51 loc) · 1.25 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
version: "2"
volumes:
archives:
config:
traph-data:
mongo-data:
scrapyd-logs:
scrapyd-eggs:
services:
backend:
restart: "${RESTART_POLICY}"
image: scpomedialab/hyphe_backend:${TAG}
build: .
links:
- "mongo:mongo"
- "crawler:crawler"
env_file:
- config-backend.env
environment:
- HYPHE_MONGODB_HOST=mongo
- HYPHE_CRAWLER_HOST=crawler
- HYPHE_TRAPH_DATAPATH=/app/traph-data
volumes:
- config:/app/config
- ${DATA_PATH}archives:/app/archives
- ${DATA_PATH}traph-data:/app/traph-data
frontend:
restart: "${RESTART_POLICY}"
image: scpomedialab/hyphe_frontend:${TAG}
build: ./hyphe_frontend
ports:
- "${PUBLIC_PORT}:80"
links:
- "backend:backend"
env_file:
- config-frontend.env
crawler:
restart: "${RESTART_POLICY}"
image: scpomedialab/hyphe_crawler:${TAG}
build: ./hyphe_backend/crawler
links:
- "mongo:mongo"
volumes:
- ${DATA_PATH}scrapyd-logs:/var/log/scrapyd
- ${DATA_PATH}scrapyd-eggs:/var/lib/scrapyd
mongo:
restart: "${RESTART_POLICY}"
image: mongo:3.6
volumes:
- ${DATA_PATH}mongo-data:/data/db
command: mongod --setParameter failIndexKeyTooLong=false --smallfiles