-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
167 lines (156 loc) · 4.84 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
services:
database:
image: "openml/test-database"
container_name: "openml-test-database"
environment:
MYSQL_ROOT_PASSWORD: ok
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
start_period: 30s
start_interval: 1s
timeout: 3s
interval: 5s
retries: 10
database-setup:
image: mysql
container_name: "openml-test-database-setup"
volumes:
- ./config/database/update.sh:/database-update.sh
command: /bin/sh -c "/database-update.sh"
depends_on:
database:
condition: service_healthy
elasticsearch:
profiles: ["all", "minio", "rest-api", "frontend", "elasticsearch", "evaluation-engine"]
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.23 # This version is not available on arm. Newer version do not play well with the PHP code. See https://github.com/openml/OpenML/tree/feature/elasticsearch8
container_name: "openml-elasticsearch"
ports:
- "9200:9200" # also known as /es (nginx)
- "9300:9300"
env_file: config/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
nginx:
profiles: ["all", "minio", "rest-api", "frontend", "elasticsearch", "evaluation-engine"]
build:
context: config/nginx
container_name: openml-nginx
ports:
- "8000:80"
php-api:
profiles: ["all", "minio", "rest-api", "frontend", "evaluation-engine"]
image: openml/php-rest-api:v1.0.20241115
container_name: "openml-php-rest-api"
ports:
- "8080:80" # also known as /api (nginx)
env_file: config/php/.env
depends_on:
elasticsearch:
condition: service_healthy
database-setup:
condition: service_completed_successfully
volumes:
- ${PHP_CODE_DIR:-./config/emptydir}:${PHP_CODE_VAR_WWW_OPENML:-/tmp/unused}
- ./logs/php:/var/www/openml/logs
- ./data/php:/var/www/data
healthcheck:
test: curl 127.0.0.1:80/api/v1/json/data/1 | grep -e "data_set_description"
start_period: 30s
start_interval: 5s
timeout: 3s
interval: 1m
email-server:
profiles: ["all", "frontend"]
image: foxcpp/maddy:latest
container_name: "email-server"
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
env_file: config/email-server/.env
volumes:
- ./config/email-server/:/data
frontend:
profiles: ["all", "frontend"]
image: openml/frontend:dev_v2.0.20241110
container_name: "openml-frontend"
ports:
- "8081:5000" # also known as / (nginx)
env_file: config/frontend/.env
volumes:
- ${FRONTEND_CODE_DIR:-./config/emptydir}:${FRONTEND_APP:-/tmp/unused}
depends_on:
php-api:
condition: service_healthy
minio:
profiles: ["all", "minio", "evaluation-engine"]
image: openml/test-minio:v0.1.20241110
container_name: "openml-minio"
ports:
- "9000:9000" # also known as /data (nginx)
- "9001:9001"
env_file: config/minio/.env
command: >
server /export --console-address ":9001"
arff-to-pq:
profiles: ["all", "minio"]
build:
context: config/arff-to-pq-converter
image: openml-arff-to-pq-converter-cron
container_name: "openml-arff-to-pq-converter"
env_file: config/arff-to-pq-converter/.env
entrypoint: >
/bin/bash -c "/run-cron.sh"
volumes:
- ${ARFF_TO_PQ_CODE_DIR:-./config/emptydir}:${ARFF_TO_PQ_APP:-/tmp/unused}
- ./logs/arff-to-pq-converter:/home/unprivileged-user/logs
- ./config/arff-to-pq-converter/config:/home/unprivileged-user/.config/openml/config:ro
depends_on:
php-api:
condition: service_healthy
croissants:
profiles: ["all", "minio"]
build:
context: config/croissant-converter
image: openml-croissant-converter-cron
container_name: "openml-croissant-converter"
env_file: config/croissant-converter/.env
entrypoint: >
/bin/bash -c "/run-cron.sh"
volumes:
- ${CROISSANT_CODE_DIR:-./config/emptydir}:${CROISSANT_APP:-/tmp/unused}
- ./logs/croissant-converter:/home/unprivileged-user/logs
depends_on:
php-api:
condition: service_healthy
evaluation-engine:
profiles: ["all", "evaluation-engine"]
build:
context: config/evaluation-engine
container_name: openml-evaluation-engine
entrypoint: >
/bin/bash -c "/run-cron.sh"
env_file: config/evaluation-engine/.env
volumes:
- ./logs/evaluation-engine:/home/unprivileged-user/logs
depends_on:
php-api:
condition: service_healthy
networks:
default:
name: openml-services