Browse Source

Single node initialization

main
Iakovos Mastrogiannopoulos 3 years ago
parent
commit
3e8570152b
  1. 10
      Makefile
  2. 2
      backend
  3. 26
      docker-compose.yml
  4. 2
      frontend

10
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<target>\033[0m (default: help)\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-12s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)

2
backend

@ -1 +1 @@
Subproject commit 5a89dad2a685f2ca4b13ae5862986ec340cb433c Subproject commit 77eb7aa6653a7acbf8c84f99339249ff9e10c378

26
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

2
frontend

@ -1 +1 @@
Subproject commit 0849e4df47aedd08f5f8c65c10dd4acb5a6334e5 Subproject commit 3a8c5988fb1bf84b102e3c1ed8da8165a45b5532
Loading…
Cancel
Save