-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (66 loc) · 1.68 KB
/
docker-compose.yml
File metadata and controls
70 lines (66 loc) · 1.68 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:
# Backend API - Node.js + TypeScript REST API
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "3001:3000"
environment:
- NODE_ENV=production
- PORT=3000
- WALLET_KEY=${WALLET_KEY:-change-this-wallet-key-in-production}
- WALLET_ID=${WALLET_ID:-business-wallet}
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_USER=businesswallet
- DB_PASSWORD=${DB_PASSWORD:-changeme}
- EMPLOYEE_VCT_URI=${EMPLOYEE_VCT_URI:-https://businesswallet.example.com/credentials/types/employee/v1}
depends_on:
db:
condition: service_healthy
networks:
- business-wallet-network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# Web UI - React frontend
web-ui:
build:
context: ./web-ui
dockerfile: Dockerfile
ports:
- "3000:80"
environment:
- NODE_ENV=production
networks:
- business-wallet-network
restart: unless-stopped
# PostgreSQL Database
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: