-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
80 lines (75 loc) · 1.86 KB
/
docker-compose.dev.yml
File metadata and controls
80 lines (75 loc) · 1.86 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
services:
postgres:
image: postgres:18-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-ws_scoring}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-dev-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- ws-scoring-dev
app:
build:
context: .
dockerfile: Dockerfile
environment:
POSTGRESQL_CONNECTION_STRING: postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-ws_scoring}
PORT: ${PORT:-3000}
CORS_ALLOWED_ORIGIN: ${CORS_ALLOWED_ORIGIN:-http://localhost:5173}
ports:
- "${PORT:-3000}:3000"
volumes:
- .:/app
- /app/node_modules
depends_on:
postgres:
condition: service_healthy
command: bun run --hot server.ts
networks:
- ws-scoring-dev
vite:
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ENV: development
API_TARGET: http://app:3000
ports:
- "${VITE_DEV_PORT:-5173}:5173"
volumes:
- .:/app
- /app/node_modules
command: bun run dev:app
depends_on:
- app
networks:
- ws-scoring-dev
mcp-dbhub:
image: bytebase/dbhub:latest
ports:
- "${DBHUB_PORT:-8080}:8080"
command:
- --transport
- http
- --port
- "8080"
- --dsn
- "postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-ws_scoring}"
depends_on:
postgres:
condition: service_healthy
networks:
- ws-scoring-dev
volumes:
postgres-dev-data:
networks:
ws-scoring-dev:
driver: bridge