-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
68 lines (62 loc) · 1.43 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
services:
redis:
image: redis:5.0.7-alpine
networks:
- affiliation-matcher-network
dashboard:
image: dataesr/dashboard-crawler:1.1
ports:
- 9181:9181
command: rq-dashboard -H redis
networks:
- affiliation-matcher-network
depends_on:
- redis
elasticsearch:
image: dataesr/es_icu:7.12.0
ports:
- 9200:9200
environment:
- 'discovery.type=single-node'
- 'ES_JAVA_OPTS=-Xms1g -Xmx1g'
volumes:
- elastic:/usr/share/elasticsearch/data
networks:
- affiliation-matcher-network
worker:
build: .
privileged: true
command: >
/bin/sh -c "sysctl -w vm.max_map_count=262144
&& python3 manage.py run_worker"
environment:
APP_SETTINGS: project.server.config.DevelopmentConfig
volumes:
- '/tmp/.X11-unix:/tmp/.X11-unix'
networks:
- affiliation-matcher-network
depends_on:
- redis
- elasticsearch
web:
build: .
privileged: true
ports:
- 5004:5000
command: python3 manage.py run -h 0.0.0.0
environment:
FLASK_DEBUG: 1
APP_SETTINGS: project.server.config.DevelopmentConfig
APP_ENV: 'development'
PAYSAGE_API_KEY: ${PAYSAGE_API_KEY}
volumes:
- '/tmp/.X11-unix:/tmp/.X11-unix'
networks:
- affiliation-matcher-network
depends_on:
- worker
networks:
affiliation-matcher-network:
driver: bridge
volumes:
elastic: