Where to start First steps track · 15 stages
Linux Labs

Containers: Docker and compose

Quiz: several containers

Question 8 of 10
Leave the quiz

Read the output

proxy.conf is mounted into proxy through volumes. Why does the site still answer 502 after the edit?

$ sed -i 's|api:8080|api:8000|' proxy.conf
$ sudo docker compose up -d
 Container notes-api-1  Running
 Container notes-proxy-1  Running
$ curl -s http://localhost:8081/ | grep title
<head><title>502 Bad Gateway</title></head>
Back A–D or ↵ Sign in to answer
Loading…