-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
62 lines (58 loc) · 1.31 KB
/
docker-compose.yaml
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
services:
database:
image: "openml/test-database"
container_name: "openml-test-database"
environment:
MYSQL_ROOT_PASSWORD: ok
ports:
- "3306:3306"
docs:
build:
context: .
dockerfile: docker/docs/Dockerfile
ports:
- "8000:8000"
volumes:
- .:/docs
php-api:
image: "openml/php-rest-api"
ports:
- "8002:80"
depends_on:
elasticsearch:
condition: service_healthy
database:
condition: service_started
healthcheck:
test: curl 127.0.0.1:80 | grep -e "openml"
start_period: 30s
start_interval: 5s
timeout: 3s
interval: 1m
python-api:
container_name: "python-api"
build:
context: .
dockerfile: docker/python/Dockerfile
ports:
- "8001:8000"
volumes:
- .:/python-api
depends_on:
- database
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.23
container_name: "elasticsearch"
ports:
- "9200:9200"
- "9300:9300"
environment:
- ELASTIC_PASSWORD=default
- discovery.type=single-node
- xpack.security.enabled=false
healthcheck:
test: curl 127.0.0.1:9200/_cluster/health | grep -e "green"
start_period: 30s
start_interval: 5s
timeout: 3s
interval: 1m