Skip to content

Commit

Permalink
fix: unexpose postgres port
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Cervello authored and alexgarel committed Oct 15, 2021
1 parent 5d880b2 commit 29165df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ services:
- POSTGRES_DB=minion
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
backend:
image: ghcr.io/openfoodfacts/openfoodfacts-server/backend:${TAG}
environment:
Expand Down
8 changes: 8 additions & 0 deletions docker/monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ services:
- 9113:9113
depends_on:
- frontend
postgres_exporter:
image: prometheuscommunity/postgres-exporter:v0.10.0
environment:
- DATA_SOURCE_NAME=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB}?sslmode=disable
networks:
- webnet
depends_on:
- postgres

0 comments on commit 29165df

Please sign in to comment.