From 3e8570152b7e7576ac5e400658422ca0d8b2fa51 Mon Sep 17 00:00:00 2001 From: Iakovos Mastrogiannopoulos Date: Fri, 4 Feb 2022 02:15:36 +0200 Subject: [PATCH] Single node initialization --- Makefile | 10 ++++++++++ backend | 2 +- docker-compose.yml | 26 ++++++++++++++++++++++++++ frontend | 2 +- 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 docker-compose.yml diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e3ffd88 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.DEFAULT_GOAL:=help + +dev: ## Deploy dev environment. + docker-compose -f docker-compose.yml up -d + +stop: ## Stop the environment running. + docker-compose stop + +help: ## Show this help. + @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m (default: help)\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-12s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST) \ No newline at end of file diff --git a/backend b/backend index 5a89dad..77eb7aa 160000 --- a/backend +++ b/backend @@ -1 +1 @@ -Subproject commit 5a89dad2a685f2ca4b13ae5862986ec340cb433c +Subproject commit 77eb7aa6653a7acbf8c84f99339249ff9e10c378 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bcb30a0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3.9' + +services: + frontend: + build: frontend + container_name: project-faas-frontend + hostname: app + volumes: + - ./frontend:/app + depends_on: + - backend + networks: + - project-faas-mainnet + + backend: + build: backend + container_name: project-faas-backend + hostname: api + volumes: + - ./backend:/api + networks: + - project-faas-mainnet + +networks: + project-faas-mainnet: + name: project-faas-mainnet \ No newline at end of file diff --git a/frontend b/frontend index 0849e4d..3a8c598 160000 --- a/frontend +++ b/frontend @@ -1 +1 @@ -Subproject commit 0849e4df47aedd08f5f8c65c10dd4acb5a6334e5 +Subproject commit 3a8c5988fb1bf84b102e3c1ed8da8165a45b5532