From daf3a3bcc6915ef137b8a2d6c966e34fdb9b0b66 Mon Sep 17 00:00:00 2001 From: cortze Date: Thu, 31 Aug 2023 15:36:04 +0200 Subject: [PATCH] update .env template to add port configuration --- .env_template | 3 +++ .gitignore | 6 ++++++ docker-compose.yaml | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.env_template b/.env_template index 959f0f3..249cde5 100644 --- a/.env_template +++ b/.env_template @@ -1,3 +1,6 @@ +CRAWLER_PORT="9020" +CRAWLER_METRICS_PORT="9080" +DB_PORT="5433" CRAWLER_LOG_LEVEL="info" CRAWLER_PSQL_ENDP="postgres://user:password@db:5432/armiarmadb" CRAWLER_PEERS_BACKUP="12h" diff --git a/.gitignore b/.gitignore index 5d93a70..0bea833 100644 --- a/.gitignore +++ b/.gitignore @@ -4,9 +4,15 @@ # do not include unnecesary files such as: # log .txt s **/*.txt + # launchers **/*.sh + # docker-compose volumes app-data/*_db +# configurations *.env + +# IDE configuration +.idea diff --git a/docker-compose.yaml b/docker-compose.yaml index ab8bc12..80ceefa 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -17,7 +17,7 @@ services: - ./app-data/postgresql_db:/var/lib/postgresql/data networks: [ cluster ] ports: - - "127.0.0.1:5432:5432" + - "127.0.0.1:${DB_PORT}:5432" healthcheck: test: pg_isready -U user -d armiarmadb interval: 10s @@ -70,5 +70,5 @@ services: condition: service_healthy networks: [ cluster ] ports: - - "9020:9020" - - "127.0.0.1:9080:9080" + - "${CRAWLER_PORT}:9020" + - "127.0.0.1:${CRAWLER_METRICS_PORT}:9080"