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"