forked from olegabu/fabric-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-couchdb.yaml
43 lines (38 loc) · 1.22 KB
/
docker-compose-couchdb.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
#
# Copyright . All Rights Reserved.
#
version: '3.7'
services:
peer0:
environment:
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb.peer0.${ORG:-org1}.${DOMAIN:-example.com}:5984
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
depends_on:
- couchdb.peer0
# peer1:
# environment:
# - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
# - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb.peer1.${ORG:-org1}.${DOMAIN:-example.com}:5984
# - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
# - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
# depends_on:
# - couchdb.peer0
couchdb.peer0:
restart: always
container_name: couchdb.peer0.${ORG:-org1}.${DOMAIN:-example.com}
image: ${DOCKER_REGISTRY:-docker.io}/hyperledger/fabric-couchdb
environment:
- COUCHDB_USER=
- COUCHDB_PASSWORD=
# ports:
# - ${PEER0_COUCHDB_PORT:-5084}:5984
# couchdb.peer1:
# container_name: couchdb.peer1.${ORG:-org1}.${DOMAIN:-example.com}
# image: hyperledger/fabric-couchdb
# environment:
# - COUCHDB_USER=
# - COUCHDB_PASSWORD=
# ports:
# - ${PEER1_COUCHDB_PORT:-5085}:5984