-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-opssc-agents.yaml
61 lines (57 loc) · 1.96 KB
/
docker-compose-opssc-agents.yaml
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
# Copyright 2019-2022 Hitachi, Ltd., Hitachi America, Ltd. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: "2"
volumes:
opssc-agent.org1.example.com:
opssc-agent.org2.example.com:
networks:
test:
external:
name: fabric_test
services:
opssc-agent.org1.example.com:
container_name: opssc-agent.org1.example.com
image: fabric-opssc/opssc-agent:${IMAGE_TAG:-latest}
environment:
- ADMIN_MSPID=Org1MSP
- ADMIN_CERT=/opt/fabric/msp/signcerts
- ADMIN_KEY=/opt/fabric/msp/keystore
- LOG_LEVEL=info
- DISCOVER_AS_LOCALHOST=false
- GIT_USER=$GIT_USER
- GIT_PASSWORD=$GIT_PASSWORD
- AGENT_SERVICE_PORT=5500
- WS_ENABLED=true
- WS_URL=ws://opssc-api-server.org1.example.com:5000
volumes:
- ../organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp:/opt/fabric/msp
- ../organizations/peerOrganizations/org1.example.com/connection-org1.yaml:/opt/fabric/config/connection-profile.yaml
- opssc-agent.org1.example.com:/opt/opssc/data
networks:
- test
ports:
- 5500:5500
opssc-agent.org2.example.com:
container_name: opssc-agent.org2.example.com
image: fabric-opssc/opssc-agent:${IMAGE_TAG:-latest}
environment:
- ADMIN_MSPID=Org2MSP
- ADMIN_CERT=/opt/fabric/msp/signcerts
- ADMIN_KEY=/opt/fabric/msp/keystore
- LOG_LEVEL=info
- DISCOVER_AS_LOCALHOST=false
- GIT_USER=$GIT_USER
- GIT_PASSWORD=$GIT_PASSWORD
- AGENT_SERVICE_PORT=5501
- WS_ENABLED=true
- WS_URL=ws://opssc-api-server.org2.example.com:5001
volumes:
- ../organizations/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp:/opt/fabric/msp
- ../organizations/peerOrganizations/org2.example.com/connection-org2.yaml:/opt/fabric/config/connection-profile.yaml
- opssc-agent.org2.example.com:/opt/opssc/data
networks:
- test
ports:
- 5501:5501