all repos — tnt-search @ 61c814071a06fa85f9f4d4fef2ecdb53276aa416

A search tool for TNTVillage's dump.

update readme
Marco Andronaco andronacomarco@gmail.com
Thu, 10 Aug 2023 01:17:18 +0200
commit

61c814071a06fa85f9f4d4fef2ecdb53276aa416

parent

a244eab7a9de0ce88e18521d8cbf6b6f8269e193

2 files changed, 11 insertions(+), 9 deletions(-)

jump to
M README.mdREADME.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.yamldocker-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