-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.19 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
services:
pipeline:
build:
context: .
dockerfile: Dockerfile
container_name: spatial-predictions
volumes:
# Mount raw data so it persists outside the container
- ./data/raw:/project/data/raw:ro
# Mount output directories for persistence
- ./data/final:/project/data/final
- ./data/intermediate:/project/data/intermediate
# Mount targets store for caching between runs
- ./_targets:/project/_targets
# Mount logs and models
- ./logs:/project/logs
- ./models:/project/models
command: ["R", "-q", "-e", "targets::tar_make()"]
test:
build:
context: .
dockerfile: Dockerfile
container_name: spatial-predictions-test
command: >
R -q -e "testthat::test_dir('tests/testthat')"
profiles:
- test
mlflow:
image: ghcr.io/mlflow/mlflow:v2.22.0
container_name: spatial-predictions-mlflow
ports:
- "5000:5000"
volumes:
- ./mlruns:/mlflow/mlruns
command: >
mlflow server
--host 0.0.0.0
--port 5000
--backend-store-uri sqlite:///mlflow/mlruns/mlflow.db
--default-artifact-root /mlflow/mlruns/artifacts
profiles:
- ml