-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (79 loc) · 1.83 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
version: '2.0'
services:
mysql:
image: 'mysql:8.0'
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'crowdeval'
MYSQL_DATABASE: 'crowdeval'
MYSQL_USER: 'crowdeval'
MYSQL_PASSWORD: 'crowdeval'
volumes:
- 'cedb:/var/lib/mysql'
networks:
- crowdeval
# if you want to run the web app outside docker
# uncomment this to expose the ports outside
# the docker network
# ports:
# - '${DB_PORT}:3306'
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.11.1'
restart: always
environment:
discovery.type: 'single-node'
volumes:
- 'cesearch:/usr/share/elasticsearch/data'
networks:
- crowdeval
# if you want to run the web app outside docker
# uncomment this to expose the ports outside
# the docker network
# ports:
# - '9200:9200'
bert:
build:
context: './bert'
dockerfile: Dockerfile
restart: always
volumes:
- cehuggingf:/root/.cache/huggingface
networks:
- crowdeval
# if you want to run the web app outside docker
# uncomment this to expose the ports outside
# the docker network
# ports:
# - '5555:5555'
redis:
image: 'redis:6.2'
restart: always
networks:
- crowdeval
# if you want to run the web app outside docker
# uncomment this to expose the ports outside
# the docker network
# ports:
# - '6379:6379'
crowdeval:
build:
context: './webapp'
dockerfile: 'infrastructure/docker/Dockerfile'
restart: always
ports:
- '8000:8000'
networks:
- crowdeval
depends_on:
- 'mysql'
- 'elasticsearch'
- 'bert'
- 'redis'
volumes:
cedb:
cesearch:
cehuggingf:
networks:
crowdeval:
driver: bridge