-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-sim.yml
57 lines (51 loc) · 1.19 KB
/
docker-compose-sim.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
version: '3.8'
services:
enclave-sgx:
build:
context: enclave
dockerfile: Dockerfiles/SIM/Dockerfile
depends_on:
- db_enclave
environment:
- ENCLAVE_DATABASE_URL=postgres://postgres:postgres@db_enclave:5432/enclave
- ENCLAVE_PORT=18080
- SEED_DIR=./seed
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:
postgres_enclave_data:
postgres_server_data: