update readme
Marco Andronaco andronacomarco@gmail.com
Thu, 10 Aug 2023 01:17:18 +0200
2 files changed,
11 insertions(+),
9 deletions(-)
M
README.md
→
README.md
@@ -16,18 +16,20 @@ python3 -m venv venv
source venv\bin\activate pip install --upgrade pip pip install -r requirements.txt -waitress-serve --host 127.0.0.1 --port 5000 main:app ``` -### Docker - -Either use Docker CLI: +* Debug: ``` -docker build -t tnt-search . -docker run -d --name tnt-search --restart unless-stopped -p 5000:5000 tnt-search +flask --app main run --port 1111 --debug +``` +* Production: +``` +pip install waitress +waitress-serve --host 127.0.0.1 --port 1111 main:app ``` -Or, better, `docker-compose`: +### Docker +Simply run: ``` -docker-compose up -d +docker-compose up --detach --build ```
M
docker-compose.yaml
→
docker-compose.yaml
@@ -4,5 +4,5 @@ image: tnt-search:latest
build: . container_name: tnt-search ports: - - "127.0.0.1:1111:80" # Uncomment if you don't use a reverse proxy + - "127.0.0.1:1111:80" restart: unless-stopped