-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
78 lines (74 loc) · 2.08 KB
/
docker-compose.dev.yml
File metadata and controls
78 lines (74 loc) · 2.08 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
services:
# Backend API - development mode with hot-reload
backend-dev:
platform: linux/amd64
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "3001:3000"
volumes:
- ./backend/src:/app/src
- ./backend/tsconfig.json:/app/tsconfig.json
environment:
- NODE_ENV=development
- PORT=3000
- WALLET_KEY=${WALLET_KEY:-dev-wallet-key-change-in-production}
- WALLET_ID=${WALLET_ID:-business-wallet-dev}
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_USER=businesswallet
- DB_PASSWORD=${DB_PASSWORD:-changeme}
- EMPLOYEE_VCT_URI=${EMPLOYEE_VCT_URI:-http://localhost:3001/credentials/types/employee/v1}
depends_on:
db:
condition: service_healthy
networks:
- business-wallet-network
restart: unless-stopped
# Development configuration for web-ui
web-ui-dev:
platform: linux/amd64
build:
context: ./web-ui
dockerfile: Dockerfile.dev
ports:
- "5173:5173"
volumes:
- ./web-ui/src:/app/src
- ./web-ui/public:/app/public
- ./web-ui/index.html:/app/index.html
- ./web-ui/vite.config.ts:/app/vite.config.ts
- ./web-ui/tsconfig.json:/app/tsconfig.json
- ./web-ui/tsconfig.app.json:/app/tsconfig.app.json
- ./web-ui/tsconfig.node.json:/app/tsconfig.node.json
environment:
- NODE_ENV=development
- API_PROXY_TARGET=http://backend-dev:3000
networks:
- business-wallet-network
restart: unless-stopped
# PostgreSQL Database (same as production)
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: businesswallet
POSTGRES_USER: businesswallet
POSTGRES_PASSWORD: ${DB_PASSWORD:-changeme}
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- business-wallet-network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U businesswallet"]
interval: 10s
timeout: 5s
retries: 5
networks:
business-wallet-network:
driver: bridge
volumes:
postgres-data: