forked from commerceblock/mercurylayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-hw.yml
81 lines (73 loc) · 1.6 KB
/
docker-compose-hw.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
version: '3.8'
services:
aesm:
build:
context: enclave
dockerfile: Dockerfiles/HW/Dockerfile
target: aesm
image: sgx_aesm
devices:
- /dev/isgx
volumes:
- aesmd-socket:/var/run/aesmd
stdin_open: true
tty: true
enclave-sgx:
build:
context: enclave
dockerfile: Dockerfiles/HW/Dockerfile
target: sample
depends_on:
- aesm
- db_enclave
environment:
- ENCLAVE_DATABASE_URL=postgres://postgres:postgres@db_enclave:5432/enclave
- ENCLAVE_PORT=18080
- SEED_DIR=./seed
devices:
- /dev/isgx
volumes:
- aesmd-socket:/var/run/aesmd
stdin_open: true
tty: true
mercury-server:
build:
context: .
dockerfile: server/Dockerfile
depends_on:
- db_server
environment:
- LOCKBOX_URL=http://enclave-sgx:18080
- BITCOIN_NETWORK=testnet
- LOCKHEIGHT_INIT=1000
- LH_DECREMENT=10
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_HOST=db_server
- DB_PORT=5432
- DB_NAME=mercury
ports:
- "8000:8000"
db_enclave:
image: postgres:16.2
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: enclave
ports:
- "5433:5432"
volumes:
- postgres_enclave_data:/var/lib/postgresql/data
db_server:
image: postgres:16.2
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mercury
ports:
- "5432:5432"
volumes:
- postgres_server_data:/var/lib/postgresql/data
volumes:
aesmd-socket:
external: true
postgres_enclave_data:
postgres_server_data: