From 808db613000136eea711cc5daaba19f26aeeba73 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Tue, 23 Apr 2024 20:13:39 -0500 Subject: [PATCH] docker setup --- backend/Dockerfile | 2 +- backend/docker-compose.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 7002ce0..e5d42ef 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -2,7 +2,7 @@ FROM node WORKDIR /app -ADD package.json package-lock.json contract-addresses.json .env /app/ +ADD package.json package-lock.json contract-addresses.json /app/ ADD src/ /app/src/ ADD contractArtifacts/ /app/contractArtifacts/ diff --git a/backend/docker-compose.yaml b/backend/docker-compose.yaml index 1131f83..fbbb3be 100644 --- a/backend/docker-compose.yaml +++ b/backend/docker-compose.yaml @@ -2,11 +2,11 @@ services: backend: build: . restart: always - ports: - - "3002:3000" + network_mode: host volumes: - ./data:/data + env_file: .env environment: - LEVEL_DATA_DIR=/data - BOT_STORAGE_PATH="./data/bot-storage.json" - - BOT_CRYPTO_STORAGE_PATH="./data/bot-crypto" \ No newline at end of file + - BOT_CRYPTO_STORAGE_PATH="./data/bot-crypto"