-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 1005 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (31 loc) · 1005 Bytes
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
version: '3.9'
services:
# ── Production: nginx serving static files ─────────────────────────────────
app:
build:
context: .
dockerfile: Dockerfile
container_name: socialspaces
ports:
- "8080:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
labels:
- "com.socialspaces.service=web"
# ── Dev: live-reload via npx live-server ────────────────────────────────────
dev:
image: node:20-alpine
container_name: socialspaces-dev
working_dir: /app
volumes:
- .:/app
ports:
- "4000:4000"
command: npx --yes live-server --port=4000 --host=0.0.0.0 --no-browser .
profiles:
- dev # Only runs when: docker compose --profile dev up