From 716054bdfeccd06d14aa22041e847a7b67ecad66 Mon Sep 17 00:00:00 2001 From: derfenix Date: Tue, 28 Mar 2023 22:40:58 +0300 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ docker-compose.yaml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb50a97..cb0da43 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,22 @@ in case of any conflicts. #### 1. Start the server +##### Start without docker ```shell go run ./cmd/server/main.go ``` +##### Change API address +```shell +API_ADDRESS=127.0.0.1:3001 go run ./cmd/server/main.go +``` + +#### Start in docker + +```shell +docker compose up -d webarchive +``` + #### 2. Add a page ```shell diff --git a/docker-compose.yaml b/docker-compose.yaml index dc45ad5..35e062c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,4 +13,4 @@ services: volumes: - ./db:/db ports: - - "0.0.0.0:5002:5001" + - "0.0.0.0:5001:5001"