From 6e8cb56a9f76c7ae8c581bda4a8c149c79171cf2 Mon Sep 17 00:00:00 2001 From: Lukas Schmitt Date: Wed, 8 Jul 2020 12:46:03 +0200 Subject: Update docker-compose.yml Removed external port for docker-containers. By default the ports should not be open. Especially if the server can be reached from the Internet. If you want to connect to these services from outside, you can go through an SSH tunnel if in doubt. --- docker-compose.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index effb40c..8b30ca7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,8 +9,6 @@ services: image: postgres:11.5-alpine container_name: postgres restart: unless-stopped - ports: - - "127.0.0:5432:5432" volumes: - postgres-data:/var/lib/postgresql/data environment: @@ -21,8 +19,6 @@ services: image: redis:5.0-alpine container_name: redis restart: on-failure - ports: - - 127.0.0.1:6379:6379 volumes: - redis-data:/data -- cgit v1.2.3