Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
133 lines (122 loc) · 4.17 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
133 lines (122 loc) · 4.17 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
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
# =============================================================================
# Dev overlay — build-from-source + hot-reload mounts.
# =============================================================================
# Installer plan §1: docker-compose.yml is deploy-safe on its own (no
# `build:` blocks, no source-code bind mounts) so an installer can drop it
# into a directory with no git checkout and `docker compose pull && up -d`
# without Docker silently shadowing the image's /app/src, /app/export etc.
# with empty host directories.
#
# This file restores today's checkout developer workflow: every `build:`
# block (so `docker compose build`/`up --build` rebuilds from the local
# Dockerfiles instead of only ever pulling) and every source-code bind
# mount (so edits under ./src, ./scripts, ./export, ./tests, ./benchmarks,
# ./test_images, ./VERSION and ./examples are picked up without a rebuild).
#
# Compose merges list-valued keys (like `volumes:`) across `-f` files by
# concatenation, so these mounts are added on top of the base file's data
# mounts, not a replacement for them.
#
# Usage (a checkout only — never in an installed deploy dir):
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
#
# The Makefile's $(COMPOSE) variable, scripts/setup.sh and
# scripts/openprocessor.sh all add this overlay automatically whenever
# they detect a checkout (src/main.py next to the compose file) — you do
# not need to pass -f docker-compose.dev.yml by hand when using `make`,
# `./scripts/setup.sh` or `./scripts/openprocessor.sh`.
# =============================================================================
services:
triton-server:
build:
context: .
dockerfile: Dockerfile.triton
api:
build:
context: .
dockerfile: Dockerfile
args:
OP_BUILD_SHA: "${OP_BUILD_SHA:-}"
environment:
# Host ports the served resource_links point at (<request host>:<port>,
# so LAN clients get their own host). A link whose profile is not
# running reads reachable=false. OP_*_URL in .env overrides (proxy).
- OP_GRAFANA_PORT=${GRAFANA_PORT:-4605}
- OP_PROMETHEUS_PORT=${PROMETHEUS_PORT:-4604}
- OP_DASHBOARDS_PORT=${OPENSEARCH_DASHBOARDS_PORT:-4608}
- OP_MLFLOW_PORT=${MLFLOW_PORT:-4609}
volumes:
- ./src:/app/src
- ./export:/app/export
- ./scripts:/app/scripts
- ./tests:/app/tests
- ./benchmarks:/app/benchmarks
- ./test_images:/app/test_images
- ./VERSION:/app/VERSION:ro
- ./examples:/app/examples:ro
# The frontend builds from ./frontend (its Dockerfile is a multi-stage static build + nginx).
cropwright:
build:
context: ./frontend
dockerfile: Dockerfile
image: ${CROPWRIGHT_IMAGE:-openprocessor-cropwright:dev}
curation-detection-worker:
build:
context: .
dockerfile: Dockerfile
args:
OP_BUILD_SHA: "${OP_BUILD_SHA:-}"
volumes:
- ./src:/app/src:ro
- ./scripts:/app/scripts:ro
- ./examples:/app/examples:ro
curation-vlm-worker:
build:
context: .
dockerfile: Dockerfile
args:
OP_BUILD_SHA: "${OP_BUILD_SHA:-}"
volumes:
- ./src:/app/src:ro
- ./scripts:/app/scripts:ro
curation-auto-label-worker:
build:
context: .
dockerfile: Dockerfile
args:
OP_BUILD_SHA: "${OP_BUILD_SHA:-}"
volumes:
- ./src:/app/src:ro
- ./scripts:/app/scripts:ro
- ./examples:/app/examples:ro
curation-cluster-refresh:
build:
context: .
dockerfile: Dockerfile
args:
OP_BUILD_SHA: "${OP_BUILD_SHA:-}"
volumes:
- ./src:/app/src:ro
- ./scripts:/app/scripts:ro
curation-evaluator:
build:
context: .
dockerfile: docker/evaluator/Dockerfile
args:
OP_BUILD_SHA: "${OP_BUILD_SHA:-}"
volumes:
- ./scripts:/app/scripts:ro
- ./src:/app/src:ro
segmenter:
build:
context: docker/segmenter
dockerfile: Dockerfile
curation-trainer:
build:
context: .
dockerfile: docker/trainer/Dockerfile
args:
OP_BUILD_SHA: "${OP_BUILD_SHA:-}"
triton-sdk:
volumes:
- ./benchmarks:/workspace/benchmarks