# 4- The Sample Web Application

**URL:** <https://forum.codewithmosh.com/t/4-the-sample-web-application/6393>\
**Category:** Docker\
**Created:** [July 27, 2021, 10:29am UTC](https://forum.codewithmosh.com/t/4-the-sample-web-application/6393 "2021-07-27T10:29:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morphois](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Morphois](https://forum.codewithmosh.com/u/Morphois)\
**Post date:** [July 27, 2021, 10:29am UTC](https://forum.codewithmosh.com/t/4-the-sample-web-application/6393/1 "2021-07-27T10:29:35Z")

</div>

Hey, when I try to run docker-compose up, I get a permission denied on the docker-entrypoint.sh. I already tried to modify the backend docker script to give the app user x permission for that file, but it seems to not solve it.

Creating vidly\_db\_1 … done  
Creating vidly\_backend\_1 … done  
Creating vidly\_frontend\_1 … done  
Attaching to vidly\_db\_1, vidly\_backend\_1, vidly\_frontend\_1  
backend\_1 | /usr/local/bin/docker-entrypoint.sh: exec: line 8: ./docker-entrypoint.sh: Permission denied

It runs the application, but I don’t get Database access.

Can somebody help?

---

<div class="post-metadata">

**Author:** ![Morphois](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Morphois](https://forum.codewithmosh.com/u/Morphois)\
**Post date:** [July 27, 2021, 10:50am UTC](https://forum.codewithmosh.com/t/4-the-sample-web-application/6393/2 "2021-07-27T10:50:48Z")

</div>

If somebody got the same issue: I solved it after some struggling.

Go to the Backend docker file and add these lines after COPY . .

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/4d3bfc1586d08eaa6738dfa5b4c608d3794e5b89.png)

---

<div class="post-metadata">

**Author:** ![Morphois](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Morphois](https://forum.codewithmosh.com/u/Morphois)\
**Post date:** [July 27, 2021, 10:51am UTC](https://forum.codewithmosh.com/t/4-the-sample-web-application/6393/3 "2021-07-27T10:51:47Z")

</div>

My Dockerfile looks like this now:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/c/c4a0e676aa4fb30b07fc7ab1d7a9c7c473c612ea.png)

---

<div class="post-metadata">

**Author:** ![Jeandavis](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@Jeandavis](https://forum.codewithmosh.com/u/Jeandavis)\
**Post date:** [October 25, 2021, 8:23pm UTC](https://forum.codewithmosh.com/t/4-the-sample-web-application/6393/4 "2021-10-25T20:23:28Z")

</div>

Thank you so much for sharing this information with us;  
I got the same issue with the [web application](https://designprosusa.com/web-application-development) but after watching your information  
I get my solution… thank you so much…

---

<div class="post-metadata">

**Author:** ![lufarius](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/lufarius/32/2684_2.png) [@lufarius](https://forum.codewithmosh.com/u/lufarius)\
**Post date:** [November 29, 2021, 10:02pm UTC](https://forum.codewithmosh.com/t/4-the-sample-web-application/6393/5 "2021-11-29T22:02:46Z")

</div>

![Screenshot from 2021-11-29 13-58-23](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/a/a33811a703c55be377dd0d50ca1d9c0b0d0dbcec.png)

This is what worked for me! 🙂  
I also had to clean my workspace to start fresh.

clear all containers- (sudo) docker container rm -f $(docker container ls -aq)  
clear all images- (sudo) docker image rm -f $(docker image ls -q)

then run…

docker-compose up

hope this helps!

---

<div class="post-metadata">

**Author:** ![billl](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@billl](https://forum.codewithmosh.com/u/billl)\
**Post date:** [April 16, 2022, 4:52am UTC](https://forum.codewithmosh.com/t/4-the-sample-web-application/6393/6 "2022-04-16T04:52:10Z")

</div>

Hi all,  
Check out an alternative solution to this from Jay-R:  
[https://forum.codewithmosh.com/t/backend-not-starting-in-vidly-app/3753](https://forum.codewithmosh.com/t/backend-not-starting-in-vidly-app/3753)  
Bill
