-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (18 loc) · 700 Bytes
/
Makefile
File metadata and controls
18 lines (18 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fetch-dev-db:
docker pull postgres:15 && docker tag postgres:15 dev-db:latest
start-dev-db:
docker run --name dev-db -e POSTGRES_PASSWORD=password --hostname docker --network qwik-network -d -v $(shell pwd)/database:/var/lib/postgresql/data dev-db
remove-dev-db:
docker container stop dev-db && docker container rm dev-db
create-network:
docker network create qwik-network
build-docker:
docker build -t qwik:latest .
build:
make build-docker
prune:
docker container prune -f
start-app:
docker run -p 3000:3000 --name qwik-app -e DATABASE_URL=postgresql://postgres:password@172.19.0.2:5432 -it --entrypoint sh --network qwik-network qwik:latest ./start.sh
run:
make prune && make start-app