From 41bb7ae6c2c428f2b222a6ca3a30e84e5d466ea5 Mon Sep 17 00:00:00 2001 From: rk16449 Date: Tue, 26 Nov 2024 16:17:50 +0000 Subject: [PATCH] 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"