Move apps to different ports

This commit is contained in:
Eden Kirin
2024-01-23 20:14:01 +01:00
parent 95b0c5f1ad
commit 3d6e4e6f34
8 changed files with 895 additions and 897 deletions

View File

@ -26,8 +26,7 @@ docker-build: clean
docker-run:
@docker run \
--name $(CONTAINER_NAME) \
--publish 3000:3000 \
--env CONTAINER_NAME="Awesome API server" \
--publish 4000:4000 \
--env DBPORT=55432 \
--detach \
$(IMAGE_NAME)

View File

@ -6,13 +6,13 @@ import (
type configStruct struct {
AppHost string `default:"0.0.0.0"`
AppPort int `default:"3000"`
AppPort int `default:"4000"`
DbHost string `default:"localhost"`
DbPort int `default:"55432"`
DbName string `default:"komponiranje"`
DbUser string `default:"pero"`
DbPassword string `default:"pero.000"`
ProductsAppUrl string `default:"http://localhost:3001"`
ProductsAppUrl string `default:"http://localhost:4001"`
}
const ENV_PREFIX = ""