From 42bf0ccb3179c694f3e71fe5d1b0b652eeb847c4 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Tue, 12 Mar 2024 14:18:10 +0100 Subject: [PATCH] add environment --- README.md | 7 +++++++ compose.yaml | 4 +++- default.env | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 default.env diff --git a/README.md b/README.md index 441b38c..ad6cf0d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # huly-selfhost Huly for Self Hosting + + + +snap install docker +git clone https://github.com/hcengineering/huly-selfhost.git +cd huly-selfhost +docker compose up diff --git a/compose.yaml b/compose.yaml index 29d9f94..cafc600 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,4 +1,6 @@ version: "3" +env_file: + - path: default.env services: mongodb: image: 'mongo:7-jammy' @@ -60,7 +62,7 @@ services: - FRONT_URL=http://front:8080 - INIT_WORKSPACE=demo-tracker - MODEL_ENABLED=* - - ACCOUNTS_URL=http://localhost:3000 + - ACCOUNTS_URL=http://${SERVER_ADDRESS}:3000 restart: unless-stopped front: image: hardcoreeng/front diff --git a/default.env b/default.env new file mode 100644 index 0000000..bcdf5a6 --- /dev/null +++ b/default.env @@ -0,0 +1 @@ +SERVER_ADDRESS=146.190.155.114