all repos — tnt-search @ 25e86e9a71bf11b75ca989164268340931193637

A search tool for TNTVillage's dump.

better docker compose
Marco Andronaco andronacomarco@gmail.com
Sun, 09 Jul 2023 17:42:02 +0200
commit

25e86e9a71bf11b75ca989164268340931193637

parent

d1bd70fe308ef1b7385b055a91c0a9b7797753db

2 files changed, 4 insertions(+), 7 deletions(-)

jump to
M README.mdREADME.md

@@ -20,17 +20,14 @@ waitress-serve --host 127.0.0.1 --port 5000 main:app

``` ### Docker -Build image: + +Either use Docker CLI: ``` docker build -t tnt-search . -``` - -Then, either use Docker CLI: -``` docker run -d --name tnt-search --restart unless-stopped -p 5000:5000 tnt-search ``` -Or, better, docker-compose (already set up for reverse-proxy only): +Or, better, `docker-compose`: ``` docker-compose up -d ```
M docker-compose.yamldocker-compose.yaml

@@ -1,6 +1,6 @@

services: tnt-search: - image: tnt-search + build: . container_name: tnt-search ports: - "127.0.0.1:5000:5000" # Replace with "5000:5000" if you don't use a reverse proxy