security-fix: port must not be accessible from outside
This commit is contained in:
parent
5d232b34cd
commit
17ad69a82b
1 changed files with 9 additions and 9 deletions
|
|
@ -6,7 +6,7 @@ services:
|
|||
POSTGRES_USER: morz_infoboard
|
||||
POSTGRES_PASSWORD: morz_infoboard
|
||||
ports:
|
||||
- "5432:5432"
|
||||
- "127.0.0.1:5432:5432"
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
|
|
@ -15,19 +15,19 @@ services:
|
|||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto:2
|
||||
ports:
|
||||
- "1883:1883"
|
||||
volumes:
|
||||
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
||||
|
||||
# mosquitto:
|
||||
# image: eclipse-mosquitto:2
|
||||
# ports:
|
||||
# - "1883:1883"
|
||||
# volumes:
|
||||
# - ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
||||
#
|
||||
backend:
|
||||
build:
|
||||
context: ../server/backend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "127.0.0.1:8080:8080"
|
||||
environment:
|
||||
MORZ_INFOBOARD_HTTP_ADDR: ":8080"
|
||||
MORZ_INFOBOARD_DATABASE_URL: "postgres://morz_infoboard:morz_infoboard@postgres:5432/morz_infoboard?sslmode=disable"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue