Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
easybistro-api-docker
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sasit Wiratjinda
easybistro-api-docker
Commits
05050645
Commit
05050645
authored
Nov 25, 2022
by
Ai-Sasit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update https proxy
parent
3e2720f0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Dockerfile
Dockerfile
+1
-1
docker-compose.yml
docker-compose.yml
+1
-1
main.py
main.py
+2
-2
No files found.
Dockerfile
View file @
05050645
...
...
@@ -8,4 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY
./server /code/server
CMD
["uvicorn", "server.core:app",
"--host", "0.0.0.0", "--port", "500
0"]
CMD
["uvicorn", "server.core:app",
"--proxy-headers", "--host", "0.0.0.0", "--port", "8
0"]
docker-compose.yml
View file @
05050645
...
...
@@ -5,7 +5,7 @@ services:
container_name
:
easybistro-api
build
:
.
ports
:
-
"
500
0:80"
-
"
8
0:80"
depends_on
:
-
mongodb
...
...
main.py
View file @
05050645
import
uvicorn
if
__name__
==
"__main__"
:
uvicorn
.
run
(
"server.core:app"
,
host
=
"0.0.0.0"
,
reload
=
True
)
\ No newline at end of file
uvicorn
.
run
(
"server.core:app"
,
host
=
"0.0.0.0"
,
reload
=
True
,
proxy_headers
=
True
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment