-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
70 lines (67 loc) · 2.1 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
70 lines (67 loc) · 2.1 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
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: skills_obs
POSTGRES_USER: skills_obs
POSTGRES_PASSWORD: dev_password
volumes:
- pgdata_dev:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U skills_obs"]
interval: 10s
timeout: 5s
retries: 5
frontend:
build:
context: .
dockerfile: Dockerfile
target: dev
command: sh -c "bun install --frozen-lockfile && cd frontend && bun run dev"
environment:
API_BASE_URL: "http://app:4200"
volumes:
- ./frontend/src:/app/frontend/src
- ./frontend/public:/app/frontend/public
- ./frontend/index.html:/app/frontend/index.html
- ./bun.lock:/app/bun.lock
- ./package.json:/app/package.json
- ./frontend/package.json:/app/frontend/package.json
- ./backend/package.json:/app/backend/package.json
ports:
- "5173:5173"
depends_on:
- app
app:
build:
context: .
dockerfile: Dockerfile
target: dev
command: sh -c "bun install --frozen-lockfile && cd backend && bun --hot src/index.ts"
environment:
DATABASE_URL: "postgres://skills_obs:dev_password@postgres:5432/skills_obs"
JWT_SECRET: "dev-secret-change-in-prod-at-least-32c"
JWT_SECRET_PREVIOUS: ""
# Frontend SPA is served on :5173 (the app container is the API on :4200).
# User-facing links (invite / password-reset → /set-password) and onboarding
# snippets must point at the frontend origin, not the API port.
PUBLIC_BASE_URL: "http://localhost:5173"
ADMIN_EMAIL: "admin@example.com"
ADMIN_PASSWORD_INITIAL: "admin12345"
PORT: "4200"
NODE_ENV: development
volumes:
- ./backend/src:/app/backend/src
- ./bun.lock:/app/bun.lock
- ./package.json:/app/package.json
- ./frontend/package.json:/app/frontend/package.json
- ./backend/package.json:/app/backend/package.json
ports:
- "4200:4200"
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata_dev: