May 2018
Intermediate to advanced
492 pages
12h 3m
English
From the authnet directory, copy the my.cnf and startdb.sh files into the frontnet directory. The my.cnf file can probably be used unmodified, but we have a few changes to make to the startdb.sh file:
docker run --name db-notes --env MYSQL_RANDOM_ROOT_PASSWORD=true \ --env MYSQL_USER=notes --env MYSQL_PASSWORD=notes12345 \ --env MYSQL_DATABASE=notes \ --volume `pwd`/my.cnf:/etc/my.cnf \ --volume `pwd`/../notes-data:/var/lib/mysql \ --network frontnet mysql/mysql-server:5.7
On Windows, name the file startdb.ps1 containing this:
docker volume create notes-data-volumedocker run --name db-notes --env MYSQL_RANDOM_ROOT_PASSWORD=true --env MYSQL_USER=notes --env MYSQL_PASSWORD=notes12345 --env MYSQL_DATABASE ...
Read now
Unlock full access