Skip to content

Instantly share code, notes, and snippets.

@Rajan-sust
Last active March 15, 2024 12:38
Show Gist options
  • Save Rajan-sust/492289040db0d4d09eaec177d3494305 to your computer and use it in GitHub Desktop.
Save Rajan-sust/492289040db0d4d09eaec177d3494305 to your computer and use it in GitHub Desktop.
$ 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