From 41bb7ae6c2c428f2b222a6ca3a30e84e5d466ea5 Mon Sep 17 00:00:00 2001 From: rk16449 Date: Tue, 26 Nov 2024 16:17:50 +0000 Subject: [PATCH 1/3] chore: add a productionv ersion of the sim enclave --- docker-compose-sim-prd.yml | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docker-compose-sim-prd.yml diff --git a/docker-compose-sim-prd.yml b/docker-compose-sim-prd.yml new file mode 100644 index 00000000..4bb313a4 --- /dev/null +++ b/docker-compose-sim-prd.yml @@ -0,0 +1,50 @@ +version: '3.8' + +services: + enclave-sgx: + build: + context: enclave + dockerfile: Dockerfiles/SIM/Dockerfile + environment: + - ENCLAVE_DATABASE_URL=postgres://mercurylayer:@:5432/enclave + - ENCLAVE_PORT=18080 + - SEED_DIR=./seed + mercury-server: + build: + context: . + dockerfile: server/Dockerfile + environment: + - LOCKBOX_URL=http://enclave-sgx:18080 + - BITCOIN_NETWORK=testnet + - LOCKHEIGHT_INIT=1000 + - LH_DECREMENT=10 + - DB_USER=mercurylayer + - DB_PASSWORD= + - DB_HOST= + - DB_PORT=5432 + - DB_NAME=mercury + ports: + - "8000:8000" + token-server: + build: + context: token-server + dockerfile: Dockerfile + environment: + - processor_url = "http://0.0.0.0:18080" + - api_key = "aaaaa" + - fee = 10000 + - unit = "BTC" + - delay = 3600 + - DB_USER = "mercurylayer" + - DB_PASSWORD = "" + - DB_HOST = "" + - DB_PORT = 5432 + - DB_NAME = "mercury" + ports: + - "18080:18080" + explorer: + build: + context: explorer + dockerfile: Dockerfile + ports: + - "80:80" From af9449e934111251a3a3cf86c524c5b9694aa0d6 Mon Sep 17 00:00:00 2001 From: rk16449 Date: Tue, 26 Nov 2024 16:19:00 +0000 Subject: [PATCH 2/3] chore: capitalize --- docker-compose-sim-prd.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose-sim-prd.yml b/docker-compose-sim-prd.yml index 4bb313a4..808f9f24 100644 --- a/docker-compose-sim-prd.yml +++ b/docker-compose-sim-prd.yml @@ -30,11 +30,11 @@ services: context: token-server dockerfile: Dockerfile environment: - - processor_url = "http://0.0.0.0:18080" - - api_key = "aaaaa" - - fee = 10000 - - unit = "BTC" - - delay = 3600 + - PROCESSOR_URL = "http://0.0.0.0:18080" + - API_KEY = "aaaaa" + - FEE = 10000 + - UNIT = "BTC" + - DELAY = 3600 - DB_USER = "mercurylayer" - DB_PASSWORD = "" - DB_HOST = "" From 761b2bd8df54f854cf3e14dde967ad623aad669a Mon Sep 17 00:00:00 2001 From: Tom Trevethan Date: Wed, 27 Nov 2024 17:21:14 +0000 Subject: [PATCH 3/3] Update docker-compose-sim-prd.yml --- docker-compose-sim-prd.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose-sim-prd.yml b/docker-compose-sim-prd.yml index 808f9f24..9034188f 100644 --- a/docker-compose-sim-prd.yml +++ b/docker-compose-sim-prd.yml @@ -30,8 +30,8 @@ services: context: token-server dockerfile: Dockerfile environment: - - PROCESSOR_URL = "http://0.0.0.0:18080" - - API_KEY = "aaaaa" + - PROCESSOR_URL = "" + - API_KEY = "" - FEE = 10000 - UNIT = "BTC" - DELAY = 3600 @@ -40,6 +40,9 @@ services: - DB_HOST = "" - DB_PORT = 5432 - DB_NAME = "mercury" + - BITCOIND = "http://user:password@127.0.0.1:8332/" + - LIGHTNINGD = "" + - LNMACAROON = "" ports: - "18080:18080" explorer: