You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create two containers on bridge network which uses front-end application as a docker image "whizlabs/webapp" and another container which refers to "whizlabs/mysql" docker image. Modify the code of webapp such that it uses the mysql connectionstring/database/tables from other running container.
4
+
5
+
---Solution
6
+
7
+
docker run --name webapp -it -p 80:80 -d whizlabs/webapp
Create a docker a service webapp which refers to whizlabs/webapp ( it is a custom php application) for the front-end and another service db( it is a mysql image) on which webapp depends called db using docker compose file.
4
+
5
+
---Solution
6
+
create docker-compose.yml file with following code
0 commit comments