From 62b1712704df03e2a86133af039dc66f69430a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Sat, 26 Aug 2023 22:39:46 +0200 Subject: [PATCH] makes localhost work on windows --- docker-compose.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 934cba7..5777e30 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,9 @@ services: ports: - 8080:80 - 8443:443 + networks: + - public + - default restart: unless-stopped db: @@ -25,11 +28,8 @@ services: MARIADB_USER: piwigo MARIADB_PASSWORD: Asdfqwer1234 MARIADB_ROOT_PASSWORD: Qwerasdf1234 -# We do expose the database to make access and checking the data quite easy - ports: - - 3306:3306 - expose: - - 3306 + networks: + - default volumes: - ./mariadb:/var/lib/mysql @@ -41,3 +41,13 @@ services: # - db # ports: # - 8081:8080 +# networks: +# - public +# - default + +# make sure the public network uses the bridge +# to be available on localhost on windows as well +networks: + default: + public: + driver: bridge \ No newline at end of file