Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (85 loc) · 2.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (85 loc) · 2.48 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
services:
backend:
build:
context: ../backend
environment:
PB_ENCRYPTION_KEY: ${PB_ENCRYPTION_KEY:-}
EXOFOP_BASE_URL: ${EXOFOP_BASE_URL:-https://exofop.ipac.caltech.edu/tess}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
CLERK_SECRET_KEY: ${CLERK_SECRET_KEY:-}
ports:
- "8094:8090"
volumes:
- ../backend/pb_data:/pb/pb_data
restart: "no"
logging:
driver: json-file
options:
max-size: "1m"
max-file: "2"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/api/health"]
interval: 60s
timeout: 3s
retries: 3
start_period: 10s
# Default `make up` target: the actual Vite dev server (Dockerfile's `dev`
# stage) with the repo bind-mounted in, so source edits on the host are
# picked up live via Vite's file watcher -- no image rebuild, ever. The
# node_modules named volume shadows the host's (possibly absent/stale)
# node_modules with the one `npm ci` produced inside the image.
atlas:
build:
context: .
target: dev
environment:
VITE_PB_URL: ${ATLAS_PB_URL:-http://localhost:8094}
ports:
- "4179:5173"
volumes:
- .:/app
- atlas_node_modules:/app/node_modules
depends_on:
backend:
condition: service_healthy
restart: "no"
logging:
driver: json-file
options:
max-size: "1m"
max-file: "2"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5173"]
interval: 60s
timeout: 3s
retries: 3
start_period: 10s
# Opt-in production-parity check: the real `npm run build` + `vite preview`
# image, same as `atlas` built before this change. Not started by `make
# up` -- only `make preview` (profile-gated so plain `docker compose up`
# can't accidentally start two atlas containers on the same port).
atlas-preview:
profiles: ["preview"]
build:
context: .
target: runner
args:
VITE_PB_URL: ${ATLAS_PB_URL:-http://localhost:8094}
ports:
- "4180:4173"
depends_on:
backend:
condition: service_healthy
logging:
driver: json-file
options:
max-size: "1m"
max-file: "2"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:4173"]
interval: 60s
timeout: 3s
retries: 3
start_period: 10s
volumes:
atlas_node_modules: