I have difficulties following the documentation. Questions I have:
- How do I set the restore/backup command on the command line? The examples seam to be identical.
- Is
<CONTAINER>_ENV_MYSQL_DATABASE the same as MYSQL_DATABASE in my docker-compose or do I need to define a variable called exactly like this?
My docker-compose.yml
db:
image: mysql/mysql-server
container_name: database
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQLROOTPW}
MYSQL_DATABASE: ${MYSQLDB}
MYSQL_USER: ${MYSQLUSER}
MYSQL_PASSWORD: ${MYSQLPW}
backup:
image: confirm/mysql-backup
volumes:
- ./data/backup:/backup
links:
- db
restart: "no"
I have difficulties following the documentation. Questions I have:
<CONTAINER>_ENV_MYSQL_DATABASEthe same asMYSQL_DATABASEin my docker-compose or do I need to define a variable called exactly like this?My docker-compose.yml