actually expose API port
This commit is contained in:
1 parent
aed80b48c0
commit
b2a4307eae
3 files changed
+3
-2
No files matched your search
+2
-1
@@ -30,7 +30,8 @@ COPY api/ /opt/Fitness/
|
|||||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|
||||||
# Expose ports
|
# Expose ports
|
||||||
EXPOSE 8069, 5000
|
EXPOSE 8069
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
# healthcheck looks for apache
|
# healthcheck looks for apache
|
||||||
HEALTHCHECK CMD netstat -ltn | grep -c ":8069" > /dev/null; if [ 0 != $? ]; then exit 1; fi;
|
HEALTHCHECK CMD netstat -ltn | grep -c ":8069" > /dev/null; if [ 0 != $? ]; then exit 1; fi;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<?php
|
<?php
|
||||||
// config.php
|
// config.php
|
||||||
// Base URL for the API
|
// Base URL for the API
|
||||||
|
# define('BASE_API_URL', 'http://172.25.1.105:5000');
|
||||||
define('BASE_API_URL', 'http://127.0.0.1:5000');
|
define('BASE_API_URL', 'http://127.0.0.1:5000');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
// file settings
|
// file settings
|
||||||
require_once __DIR__ . '/config.php';
|
require_once __DIR__ . '/config.php';
|
||||||
|
|
||||||
// --- Helper to call the API -------------------------------------------
|
// --- Helper to call the API -------------------------------------------
|
||||||
function callApi(string $method, string $path, $body = null)
|
function callApi(string $method, string $path, $body = null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user