-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathcompose.yaml
More file actions
68 lines (64 loc) · 1.54 KB
/
compose.yaml
File metadata and controls
68 lines (64 loc) · 1.54 KB
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:
database:
image: "openml/test-database:v0.1.20260204"
environment:
MYSQL_ROOT_PASSWORD: ok
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
start_period: 30s
start_interval: 1s
timeout: 3s
interval: 5s
retries: 10
docs:
profiles: ["all"]
build:
context: .
dockerfile: docker/docs/Dockerfile
volumes:
- .:/docs
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.23
platform: "linux/amd64"
env_file: docker/elasticsearch/.env
healthcheck:
test: curl 127.0.0.1:9200/_cluster/health | grep -e "green"
start_period: 30s
start_interval: 5s
timeout: 3s
interval: 10s
deploy:
resources:
limits:
cpus: '1'
memory: 1G
reservations:
cpus: '0.2'
memory: 250M
php-api:
profiles: ["apis", "all"]
image: "openml/php-rest-api:v1.2.4"
env_file: docker/php/.env
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:
profiles: ["apis", "all"]
build:
context: .
dockerfile: docker/python/Dockerfile
volumes:
- .:/app
- ./src/config.toml:/config/config.toml
environment:
OPENML_REST_API_CONFIG_DIRECTORY: "/config"
depends_on:
- database