I gave in...back to docker

This commit is contained in:
2025-02-17 14:49:44 -05:00
parent 678da4dcc8
commit 32db051152
4 changed files with 68 additions and 21 deletions
+4 -7
View File
@@ -1,19 +1,16 @@
all: run
run:
nohup python app.py > output.log 2>&1 & echo $$! > app.pid
docker compose build
docker compose up -d
stop:
@if [ -s app.pid ]; then \
kill -9 $$(cat app.pid) && rm -f app.pid; \
else \
echo "No running process found."; \
fi
docker compose down -v
restart: stop run
logs:
tail -f output.log
docker compose logs -f
clean: stop
rm -f output.log app.pid