-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
167 lines (166 loc) · 4.94 KB
/
docker-compose.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: "3.9"
networks:
main:
name: main
services:
connect:
profiles: ["deployment"]
networks:
- main
image: linuxforhealth/connect:0.42.0
environment:
CONNECT_CA_PATH: /usr/local/share/ca-certificates
IPFS_CLUSTER_URI: http://ipfs-cluster-0:9099
ports:
- "5000:5000"
depends_on:
- opensearch
nats-server:
networks:
- main
image: linuxforhealth/nats-server:v2.6.6
volumes:
- ./local-config/nats:/conf
command: "--config=/conf/nats-server.conf --jetstream"
ports:
- "4222:4222"
zookeeper:
networks:
- main
image: docker.io/linuxforhealth/zookeeper:3.6.3-alpine-3.14.2
kafka:
networks:
- main
image: docker.io/linuxforhealth/kafka:3.0.0-alpine-3.14.2
restart: "always"
ports:
- "9094:9094"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://kafka:9094
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://localhost:9094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
ipfs-cluster-0:
container_name: ipfs-cluster-0
networks:
- main
image: linuxforhealth/ipfs-cluster:v0.14.0
depends_on:
- ipfs-node-0
environment:
CLUSTER_PEERNAME: ipfs-cluster-0
CLUSTER_SECRET: 724931756d306e6d56685055714966347373424e77484d733369575433364d42
CLUSTER_IPFSHTTP_NODEMULTIADDRESS: /dns4/ipfs-node-0/tcp/5001
CLUSTER_CRDT_TRUSTEDPEERS: '*' # Trust all peers in Cluster
CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS: /ip4/0.0.0.0/tcp/9099 # Expose API
CLUSTER_MONITORPINGINTERVAL: 2s # Speed up peer discovery
ports:
- "9099:9099"
volumes:
- ./local-config/ipfs/volumes/ipfs-cluster-0/config:/data/ipfs-cluster
ipfs-node-0:
container_name: ipfs-node-0
networks:
- main
image: linuxforhealth/go-ipfs:release-v0.9.1
ports:
- "4001:4001"
- "8080:8080"
- "5001:5001"
environment:
LIBP2P_FORCE_PNET: '1'
volumes:
- ./local-config/ipfs/volumes/staging_dir:/export
- ./local-config/ipfs/volumes/pv-data_dir:/data/pv
- ./local-config/ipfs/volumes/ipfs-node-0:/data/ipfs
- ./local-config/ipfs/private-ipfs-network/swarm.key:/data/ipfs/swarm.key
- ./local-config/ipfs/private-ipfs-network/init.sh:/usr/local/bin/start_ipfs
postgres:
# See https://hub.docker.com/_/postgres/ for config info, e.g. how to run
# initialization scripts using an image derived from the official image.
image: postgres:14.1-alpine3.14
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: lfh_database
PGPORT: 5432
volumes:
- postgres-data:/var/lib/postgresql/data/
ports:
- 5432:5432
ibm-fhir:
profiles: ["fhir", "deployment"]
networks:
- main
image: docker.io/ibmcom/ibm-fhir-server:4.6.0
environment:
BOOTSTRAP_DB: "true"
ports:
- 9443:9443
msft-fhir-api:
profiles: ["fhir"]
networks:
- main
image: linuxforhealth/msft-fhir:20210903-001-R4
restart: on-failure
environment:
SAPASSWORD: ${SAPASSWORD}
FHIRServer__Security__Enabled: "false"
SqlServer__ConnectionString: "Server=tcp:msft-sql,1433;Initial Catalog=FHIR;Persist Security Info=False;User ID=sa;Password=${SAPASSWORD};MultipleActiveResultSets=False;Connection Timeout=30;"
SqlServer__AllowDatabaseCreation: "true"
SqlServer__Initialize: "true"
SqlServer__SchemaOptions__AutomaticUpdatesEnabled: "true"
DataStore: "SqlServer"
ports:
- "9445:8080"
depends_on:
- msft-sql
msft-sql:
profiles: ["fhir"]
networks:
- main
image: "mcr.microsoft.com/mssql/server"
environment:
SA_PASSWORD: ${SAPASSWORD}
ACCEPT_EULA: "Y"
healthcheck:
test: ["CMD", "/opt/mssql-tools/bin/sqlcmd","-U sa -P ${SAPASSWORD} -Q 'SELECT * FROM INFORMATION_SCHEMA.TABLES'"]
interval: 10s
timeout: 10s
retries: 6
fabric-client:
profiles: ["fabric"]
networks:
- main
image: linuxforhealth/fabric-client:0.1
restart: "always"
environment:
INITIALIZE_WITH_DISCOVERY: 'false'
DISCOVERY_AS_LOCALHOST: 'false'
volumes:
- ./local-config/fabric/conf:/usr/src/app/conf
ports:
- "9043:9043"
ethereum-client:
profiles: ["ethereum"]
networks:
- main
image: linuxforhealth/ethereum-client:0.1.0
environment:
ETHEREUM_CA_PATH: /usr/local/share/ca-certificates
ETHEREUM_RATE_LIMIT: 5/second
ETHEREUM_CONTRACT_ADDRESS: "0x7Bad280884c907bBf3955c21351ce41122aB88eB"
ports:
- "5100:5100"
opensearch:
networks:
- main
image: opensearchproject/opensearch:1.2.1
environment:
discovery.type: "single-node"
ports:
- "9200:9200"
- "9600:9600"
volumes:
postgres-data: