Skip to content

Using docker and docker compose create an environment for PHP and MySQL. Run php code and connect to mysql container.

Notifications You must be signed in to change notification settings

rdhawladar/php-mysql-in-docker-with-CICD-aws-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run the following command:

$ docker-compose up -d     //Runs containers from the docker-file

Some basic docker commands:

$ docker container ls     //Lists all the container
$ docker container -a     //Lists all the container
$ docker images   //Lists all the images

$ docker run
$ docker start
$ docker stop

To run ubuntu machine:

$ docker run -it --name macine_name ubuntu

To INSPECT container:

$ docker inspect CONTAINER_ID

To enter in a container:

$ docker-compose exec workspace bash

About

Using docker and docker compose create an environment for PHP and MySQL. Run php code and connect to mysql container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages