Skip to content

Commit 6084742

Browse files
Update README.md
Added quick setup steps.
1 parent 35fbafb commit 6084742

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,26 @@ You will see individual containers for PHP, MySql and Apache as shown below:
4141
| 8294e1800058 | dockerize-existing-drupal-project_php | "docker-php-entrypoi…" | 33 seconds ago | Up 31 seconds | 9000/tcp | php |
4242
| d8b2cbac5695 | mysql:8.0.0 | "docker-entrypoint.s…" | 33 seconds ago | Up 31 seconds | 0.0.0.0:3306->3306/tcp | mysql |
4343

44+
4. Now hit the http://localhost:80 in browser to ensure setup is successful. Along with the below output, you will also see phpinfo() output.
45+
```
46+
Congratulations!! Docker setup connection is successful.
47+
Checking MySQL integration with php.
48+
MySql connection is successful!
49+
```
50+
5. With the current setup you will get below versions but you can change it anytime in .env file.
51+
```
52+
PHP Version = 7.3.11
53+
APACHE_VERSION = 2.4.41
54+
MYSQL_VERSION = 8.0.0
55+
```
56+
6. Now put your codebase inside `docroot` folder that is pointed to `/var/www/html` in the PHP container. You can also see it using docker command as shown below:
57+
```
58+
docker exec -it 8294e1800058 /bin/sh
59+
```
60+
`8294e1800058` is PHP container id as shown in the above table.
61+
62+
7. Since the Drush and composer are already part of PHP docker image, you can simply import the database using drush.
4463

64+
8. This way the basic setup is done and you can change the composer file accordingly. In case any additional PHP library is needed, update the PHP docker file and rebuild the PHP Docker image.
4565

66+
## Detailed Explanation

0 commit comments

Comments
 (0)