-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.73 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.73 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
# ═══════════════════════════════════════════════════════════════
# Velocity — Docker Compose
# Usage:
# Production: docker compose up --build
# Development: docker compose --profile dev up
# ═══════════════════════════════════════════════════════════════
version: "3.9"
services:
# ── Production ──────────────────────────────────────────────
velocity:
build:
context: .
dockerfile: newcore/Dockerfile
container_name: velocity-core
ports:
- "3777:3777"
env_file:
- newcore/.env
volumes:
- workspaces:/app/workspaces
- artifacts:/app/artifacts
- data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3777/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
# ── Development (hot-reload) ─────────────────────────────────
velocity-dev:
build:
context: .
dockerfile: newcore/Dockerfile.dev
container_name: velocity-dev
profiles: ["dev"]
ports:
- "3777:3777"
env_file:
- newcore/.env
volumes:
- ./newcore/src:/app/src # live source mount for hot-reload
- workspaces:/app/workspaces
- artifacts:/app/artifacts
- data:/app/data
restart: unless-stopped
volumes:
workspaces:
artifacts:
data: