Skip to content

Commit

Permalink
update .env template to add port configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cortze committed Aug 31, 2023
1 parent 9589fb4 commit daf3a3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .env_template
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

0 comments on commit daf3a3b

Please sign in to comment.