-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
78 lines (74 loc) · 1.85 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
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: iota-multisig-manager-postgres
environment:
POSTGRES_USER: sagat
POSTGRES_PASSWORD: sagat_dev_password
POSTGRES_DB: multisig_db
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test:
['CMD-SHELL', 'pg_isready -U sagat -d multisig_db']
interval: 10s
timeout: 5s
retries: 5
# IOTA Multisig Manager API Backend
api:
build:
context: .
dockerfile: api/Dockerfile
container_name: iota-multisig-manager-api
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://sagat:sagat_dev_password@postgres:5432/multisig_db
JWT_SECRET: dev_jwt_secret_change_in_production
SUPPORTED_NETWORKS: testnet,mainnet
CORS_ALLOWED_ORIGINS: http://localhost:5173,http://localhost:3001
NODE_ENV: production
ports:
- '3000:3000'
healthcheck:
test:
[
'CMD-SHELL',
'curl -f http://localhost:3000/health || exit 1',
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# IOTA Multisig Manager Frontend App
app:
build:
context: .
dockerfile: app/Dockerfile
target: production
args:
VITE_API_URL: http://localhost:3000
VITE_IOTA_NETWORKS: testnet,mainnet
VITE_DEFAULT_NETWORK: testnet
container_name: iota-multisig-manager-app
depends_on:
api:
condition: service_healthy
ports:
- '3001:80'
healthcheck:
test:
[
'CMD-SHELL',
'wget --no-verbose --tries=1 --spider http://localhost:80 || exit 1',
]
interval: 30s
timeout: 10s
retries: 3
volumes:
postgres_data: