-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
81 lines (76 loc) · 2 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
81 lines (76 loc) · 2 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
81
services:
cello-dashboard:
build:
context: ./src/dashboard
image: cello/dashboard:latest
container_name: cello-dashboard
restart: unless-stopped
ports:
- "${DASHBOARD_SERVICE_PORT:-8081}:8081"
networks:
- cello-net
depends_on:
- cello-api-engine
cello-postgres:
image: postgres:12.0
container_name: cello-postgres
restart: unless-stopped
environment:
- POSTGRES_DB=api_engine
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${DB_PASSWORD:-123456}
ports:
- "5432:5432"
volumes:
- cello-postgres:/var/lib/postgresql/data
networks:
- cello-net
cello-api-engine:
build:
context: ./src/api-engine
image: cello/api-engine:latest
container_name: cello-api-engine
restart: unless-stopped
stdin_open: true
dns_search: .
environment:
- GODEBUG=netdns=go
- DB_NAME=api_engine
- DB_USER=postgres
- DB_PASSWORD=${DB_PASSWORD:-123456}
- DB_HOST=cello-postgres
- DB_PORT=5432
- DEBUG=True
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- FABRIC_LOGGING_SPEC=INFO
ports:
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- cello-api-engine-chaincode:/media
networks:
- cello-net
depends_on:
- cello-postgres
cello-docker-agent:
build:
context: ./src/agents/hyperledger-fabric
image: "${LOCAL_AGENT_IMAGE:-cello/hyperledger-fabric-agent:local}"
container_name: "${LOCAL_AGENT_NAME:-cello-docker-agent}"
hostname: "${LOCAL_AGENT_NAME:-cello-docker-agent}"
restart: unless-stopped
ports:
- "${LOCAL_AGENT_PORT:-5001}:${LOCAL_AGENT_INTERNAL_PORT:-8080}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- cello-hyperledger-fabric-agent:/cello
networks:
- cello-net
networks:
cello-net:
name: cello-net
volumes:
cello-postgres:
cello-api-engine:
cello-api-engine-chaincode:
cello-hyperledger-fabric-agent: