From 482b7a939711257e8a27037c7af15a368676458d Mon Sep 17 00:00:00 2001 From: max Date: Mon, 30 Dec 2024 02:36:08 +0000 Subject: [PATCH] remove port expose declaration in docker compose as the mariadb image already has this add static ip address to catask network --- docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9a10446..3cf0d42 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,8 +7,6 @@ services: MARIADB_DATABASE: catask MARIADB_USER: catask MARIADB_PASSWORD: catask - expose: - - "3306/tcp" healthcheck: test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] start_period: 10s @@ -40,6 +38,9 @@ services: networks: catask: + driver: bridge + driver_opts: + com.docker.network.bridge.host_binding_ipv4: "127.0.0.1" volumes: db-data: \ No newline at end of file