use service name for dns

This commit is contained in:
Fco. Javier Delgado del Hoyo 2024-09-10 19:37:59 +02:00 committed by GitHub
parent 353430ff83
commit 07213e8135
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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:
data: