-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (55 loc) · 1.72 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
version: '3.8'
services:
# scrap_bigkinds:
build:
image: 0jacky/$PROJ:latest
container_name: build_container
build:
context: .
args:
UID: $UID
GID: $GID
USER: $DOCKER_USER
PROJ: $PROJ
pytest:
image: 0jacky/$PROJ:latest
container_name: pytest
# environment:
volumes:
- $PWD/config:/home/$DOCKER_USER/$PROJ/config
- $PWD/log:/home/$DOCKER_USER/$PROJ/log
- $PWD/data:/home/$DOCKER_USER/$PROJ/data
- $PWD/src:/home/$DOCKER_USER/$PROJ/src
- $PWD/tests:/home/$DOCKER_USER/$PROJ/tests
command: pytest
doc:
image: 0jacky/$PROJ:latest
container_name: documentation
volumes:
- $PWD/src:/home/$DOCKER_USER/$PROJ/src
- $PWD/docs:/home/$DOCKER_USER/$PROJ/docs
command: bash -c "rm -f docs/src* && sphinx-apidoc -o docs src && cd docs && make clean html"
# shell command: docker compose run --rm --service-ports mlflow_ui
mlflow-ui:
image: 0jacky/$PROJ:latest
container_name: mlflow-ui
ports:
- "5050:5050"
volumes:
- $PWD/mlruns:/home/$DOCKER_USER/$PROJ/mlruns
command: mlflow ui -h 0.0.0.0 -p 5050
# shell command: docker compose run --rm --service-ports jupyter
jupyter-lab:
image: 0jacky/$PROJ:latest
container_name: jupyter-lab
# environment:
ports:
- "8888:8888"
volumes:
- $PWD/config:/home/$DOCKER_USER/$PROJ/config
- $PWD/log:/home/$DOCKER_USER/$PROJ/log
- $PWD/data:/home/$DOCKER_USER/$PROJ/data
- $PWD/src:/home/$DOCKER_USER/$PROJ/src
- $PWD/notebooks:/home/$DOCKER_USER/$PROJ/notebooks
- $PWD/mlruns:/home/$DOCKER_USER/$PROJ/mlruns
command: jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root