mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2024-11-01 08:31:45 +01:00
use service name for dns
This commit is contained in:
parent
353430ff83
commit
07213e8135
1 changed files with 2 additions and 3 deletions
|
@ -2,7 +2,6 @@ version: "2"
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:10
|
image: mariadb:10
|
||||||
container_name: my_mariadb
|
|
||||||
expose:
|
expose:
|
||||||
- 3306
|
- 3306
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -21,7 +20,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUME_PATH}/backup:/backup
|
- ${VOLUME_PATH}/backup:/backup
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_HOST=my_mariadb
|
- MYSQL_HOST=mariadb
|
||||||
- MYSQL_USER=root
|
- MYSQL_USER=root
|
||||||
- MYSQL_PASS=${MARIADB_ROOT_PASSWORD}
|
- MYSQL_PASS=${MARIADB_ROOT_PASSWORD}
|
||||||
- MAX_BACKUPS=1
|
- MAX_BACKUPS=1
|
||||||
|
@ -30,4 +29,4 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
data:
|
||||||
|
|
Loading…
Reference in a new issue