🎉 initial commit
This commit is contained in:
39
devices-api/Makefile
Normal file
39
devices-api/Makefile
Normal file
@@ -0,0 +1,39 @@
|
||||
.PHONY: init-db dev build clean logs down
|
||||
|
||||
init-db:
|
||||
docker-compose exec postgres psql -U devices_user -d handheld_devices -f /docker-entrypoint-initdb.d/001_create_devices.sql
|
||||
|
||||
build:
|
||||
docker-compose build
|
||||
|
||||
dev:
|
||||
docker-compose up -d
|
||||
|
||||
logs:
|
||||
docker-compose logs -f api
|
||||
|
||||
logs-worker:
|
||||
docker-compose logs -f worker
|
||||
|
||||
logs-all:
|
||||
docker-compose logs -f
|
||||
|
||||
down:
|
||||
docker-compose down
|
||||
|
||||
down-volumes:
|
||||
docker-compose down -v
|
||||
|
||||
shell-postgres:
|
||||
docker-compose exec postgres psql -U devices_user -d handheld_devices
|
||||
|
||||
shell-api:
|
||||
docker-compose exec api sh
|
||||
|
||||
shell-worker:
|
||||
docker-compose exec worker sh
|
||||
|
||||
clean: down-volumes
|
||||
|
||||
status:
|
||||
docker-compose ps
|
||||
Reference in New Issue
Block a user