-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
68 lines (62 loc) · 1.17 KB
/
docker-compose.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
62
63
64
65
66
67
68
# Bring up the server:
#
# docker-compose up server-sw
#
# Run the tests:
#
# docker-compose run test-sw
#
# For HW mode, replace `sw` with `hw`.
services:
server-sw:
profiles: ["sw"]
build:
context: .
args:
SGX_MODE: "SW"
target: run-sgx-wallet-server-sw
read_only: true
init: true
environment:
BIND_ADDR: "0.0.0.0:8080"
volumes:
- wallet-data-sw:/app/wallet_store
ports:
- "8080:8080"
server-hw:
profiles: ["hw"]
build:
context: .
args:
SGX_MODE: "HW"
target: run-sgx-wallet-server-hw
read_only: true
init: true
environment:
BIND_ADDR: "0.0.0.0:8080"
devices:
- /dev/sgx/enclave
- /dev/sgx/provision
volumes:
- wallet-data-hw:/app/wallet_store
ports:
- "8080:8080"
test-sw:
profiles: ["test-sw"]
build:
context: .
args:
SGX_MODE: "SW"
target: run-sgx-wallet-test-sw
read_only: true
test-hw:
profiles: ["test-hw"]
build:
context: .
args:
SGX_MODE: "HW"
target: run-sgx-wallet-test-hw
read_only: true
volumes:
wallet-data-sw:
wallet-data-hw: