Answer the question
In order to leave comments, you need to log in
How to get to the runserver that was launched inside the container from the browser?
I did:
FROM python:3.8.6-slim
WORKDIR /app
RUN apt update -y && apt install -y \
libcurl4-openssl-dev libssl-dev curl gcc binutils libproj-dev gdal-bin \
&& rm -rf /var/lib/apt/lists/*
ADD requirements.txt .
RUN pip install -r requirements.txt
COPY src/ .
docker network create name_network
docker run -d --network name_network --network-alias postgis -e POSTGRES_PASSWORD=pass --name app_name_postgis app_name_postgis
docker build -t app_name -f Dockerfile .
docker run -t -d --network name_network -p 8000:8000 -v D:\progra\app_name\src:/app/ --name app_name app_name
Answer the question
In order to leave comments, you need to log in
something like this
<?
$query = $db->Query("SELECT * FROM db_pyramid WHERE status = 1");
while($user = $query->FetchArray()){
?>
Юзер: <?=$user['name']?>
<?
}
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question