Skip to content

FaisalDefry/php-mysql-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose PHP+MYSQL on Docker

Git Clone

git clone https://github.com/FaisalDefry/php-mysql-sample

cd php-mysql-sample

Install Docker compose

cp docker-compose /usr/local/bin/docker-compose
```

### Inspect Dockerfile & related file

```
cat app/index.php
cat app/Dockerfile
cat db/Dockerfile
cat db/telkom.sql

```


### Build & Run!

```
docker-compose build
docker-compose up -d
```
you can now start writing your app!

### Stop

```
docker-compose kill
```

### MySQL

Check out `app/index.php` for getting credentials from the ENV variables.

### Test the app

```
$VM_IP_ADDRESS:8000
```

About

php & mysql using docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published