-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
62 lines (59 loc) · 1.48 KB
/
docker-compose.dev.yml
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
services:
fabric-tools:
build:
context: .
dockerfile: Dockerfile.fabric-tools
platform: linux/arm64
volumes:
- ./config/fabric:/etc/hyperledger/fabric
- ./chaincode:/chaincode
working_dir: /etc/hyperledger/fabric
entrypoint: ["sh", "/usr/local/bin/fabric-tools-entrypoint.sh"]
environment:
- FABRIC_CFG_PATH=/etc/hyperledger/fabric
dev:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./backend:/app/backend
- ./frontend:/app/frontend
- /app/backend/node_modules
- /app/frontend/node_modules
ports:
- "4000:4000" # Backend
- "4001:4001" # Frontend
environment:
- NODE_ENV=development
- HOST=0.0.0.0 # Permitir acesso externo
- WDS_SOCKET_HOST=0.0.0.0 # Para o webpack dev server
develop:
watch:
- action: sync+restart
path: ./backend
target: /app/backend
ignore:
- node_modules/
- .git/
- action: sync
path: ./frontend
target: /app/frontend
ignore:
- node_modules/
- .git/
- build/
depends_on:
- postgres
- fabric-tools
postgres:
image: postgres:14-alpine
environment:
- POSTGRES_DB=waterchain
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
volumes:
- postgres-dev-data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres-dev-data: