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_USER: morz_infoboard
|
||||||
POSTGRES_PASSWORD: morz_infoboard
|
POSTGRES_PASSWORD: morz_infoboard
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "127.0.0.1:5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres-data:/var/lib/postgresql/data
|
- postgres-data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
@ -15,19 +15,19 @@ services:
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
|
||||||
mosquitto:
|
# mosquitto:
|
||||||
image: eclipse-mosquitto:2
|
# image: eclipse-mosquitto:2
|
||||||
ports:
|
# ports:
|
||||||
- "1883:1883"
|
# - "1883:1883"
|
||||||
volumes:
|
# volumes:
|
||||||
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
# - ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
||||||
|
#
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
context: ../server/backend
|
context: ../server/backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "127.0.0.1:8080:8080"
|
||||||
environment:
|
environment:
|
||||||
MORZ_INFOBOARD_HTTP_ADDR: ":8080"
|
MORZ_INFOBOARD_HTTP_ADDR: ":8080"
|
||||||
MORZ_INFOBOARD_DATABASE_URL: "postgres://morz_infoboard:morz_infoboard@postgres:5432/morz_infoboard?sslmode=disable"
|
MORZ_INFOBOARD_DATABASE_URL: "postgres://morz_infoboard:morz_infoboard@postgres:5432/morz_infoboard?sslmode=disable"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue