Skip to content

Commit

Permalink
use service name for dns
Browse files Browse the repository at this point in the history
  • Loading branch information
fradelg authored Sep 10, 2024
1 parent 353430f commit 07213e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: "2"
services:
mariadb:
image: mariadb:10
container_name: my_mariadb
expose:
- 3306
volumes:
Expand All @@ -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
Expand All @@ -30,4 +29,4 @@ services:
restart: unless-stopped

volumes:
data:
data:

0 comments on commit 07213e8

Please sign in to comment.