Last active
March 15, 2024 12:38
-
-
Save Rajan-sust/492289040db0d4d09eaec177d3494305 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker pull mariadb | |
$ VOLUME=DB | |
$ docker volume create ${VOLUME} | |
$ docker run --detach \ | |
-p 3306:3306 \ | |
-v ${VOLUME}:/var/lib/mysql \ | |
--name MariaDB \ | |
--env MARIADB_ROOT_PASSWORD=secret-pw \ | |
mariadb:latest | |
docker run -d -p 8080:80 \ | |
-v ~/Learn_PHP:/var/www/html --name apache-server php:7.4-apache | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment