better docker compose
Marco Andronaco andronacomarco@gmail.com
Sun, 09 Jul 2023 17:42:02 +0200
2 files changed,
4 insertions(+),
7 deletions(-)
M
README.md
→
README.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.yaml
→
docker-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