Skip to content

Commit

Permalink
add docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
fouzo95 committed May 30, 2022
1 parent 6dde742 commit d10c16c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
ports:
- 8090:80
API:
image: student_list_api
image: student-list-api
volumes:
- ./simple_api/student_age.json:/data/student_age.json
ports:
Expand Down
2 changes: 1 addition & 1 deletion website/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"header" => "Authorization: Basic " . base64_encode("$username:$password"),
)));

$url = 'http://0.0.0.0:5000/pozos/api/v1.0/get_student_ages';
$url = 'http://API:5000/pozos/api/v1.0/get_student_ages';
$list = json_decode(file_get_contents($url, false, $context), true);
echo "<p style='color:red;; font-size: 20px;'>This is the list of the student with age</p>";
foreach($list["student_ages"] as $key => $value) {
Expand Down

0 comments on commit d10c16c

Please sign in to comment.