forked from sidpalas/devops-directive-docker-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (26 loc) · 640 Bytes
/
Makefile
File metadata and controls
30 lines (26 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DATABASE_URL:=postgres://postgres:foobarbaz@localhost:5432/postgres
.PHONY: run-postgres
run-postgres:
@echo Starting postgres container
-docker run \
-e POSTGRES_PASSWORD=foobarbaz \
-v pgdata:/var/lib/postgresql/data \
-p 5432:5432 \
postgres:15.1-alpine
.PHONY: run-api-node
run-api-node:
@echo Starting node api
cd api-node && \
DATABASE_URL=${DATABASE_URL} \
npm run dev
.PHONY: run-api-golang
run-api-golang:
@echo Starting golang api
cd api-golang && \
DATABASE_URL=${DATABASE_URL} \
go run main.go
.PHONY: run-client-react
run-client-react:
@echo Starting react client
cd client-react && \
npm run dev