forked from wayfair-incubator/extra-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (35 loc) · 866 Bytes
/
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
version: "3.4"
services:
dev: &dev
build:
dockerfile: "./docker/Dockerfile"
context: "."
image: "extra-model-dev"
volumes:
- ./extra_model:/package/extra_model
- ./tests:/package/tests
- ./docs:/package/docs
- ./site:/package/site
- ./mkdocs.yml:/package/mkdocs.yml
- ./embeddings:/package/embeddings
- ./embeddings:/embeddings
- ./io:/io
# download embeddings
setup:
<<: *dev
entrypoint: "extra-model-setup"
# run extra-model
extra-model:
<<: *dev
entrypoint: "extra-model"
# run test & lint suite
test:
<<: *dev
command: docker/run_tests.sh --format-code
# generate and serve the project documentation locally
mkdocs: &mkdocs
<<: *dev
entrypoint: "mkdocs"
ports:
- "8000:8000"
command: ["serve", "--dev-addr=0.0.0.0:8000"]