Skip to content

Commit

Permalink
feat: expose postgres DB locally
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Sep 27, 2022
1 parent 9272610 commit 2668f2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ POSTGRES_HOST=postgres.webnet
POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_EXPOSE=127.0.0.1:5432

# InfluxDB
INFLUXDB_HOST=
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ services:
command: postgres -c shared_buffers=1024MB -c work_mem=64MB
mem_limit: 4g
shm_size: 1g
ports:
- "${POSTGRES_EXPOSE:-5432}:5432"
networks:
- webnet

Expand Down

0 comments on commit 2668f2a

Please sign in to comment.