From 07213e81358665a17117297f95104898989d0958 Mon Sep 17 00:00:00 2001 From: "Fco. Javier Delgado del Hoyo" Date: Tue, 10 Sep 2024 19:37:59 +0200 Subject: [PATCH] use service name for dns --- docker-compose.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index d0b693f..e154335 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,7 +2,6 @@ version: "2" services: mariadb: image: mariadb:10 - container_name: my_mariadb expose: - 3306 volumes: @@ -21,7 +20,7 @@ services: volumes: - ${VOLUME_PATH}/backup:/backup environment: - - MYSQL_HOST=my_mariadb + - MYSQL_HOST=mariadb - MYSQL_USER=root - MYSQL_PASS=${MARIADB_ROOT_PASSWORD} - MAX_BACKUPS=1 @@ -30,4 +29,4 @@ services: restart: unless-stopped volumes: - data: \ No newline at end of file + data: