Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
proxy outside host
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgarcia4158 committed Feb 23, 2024
1 parent 7d192a7 commit e73c69a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ RUN opentelemetry-bootstrap --action=install

EXPOSE 8000

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--forwarded-allow-ips", "*", "--workers", "9"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--forwarded-allow-ips", "*"]
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ services:
networks:
- staging
- telemetry
extra_hosts:
- host.docker.internal:host-gateway
- host
depends_on:
- backend

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
app.include_router(stocks.router)

if environment == "production":
FastAPIInstrumentor.instrument_app(app)
FastAPIInstrumentor().instrument_app(app)
resource = Resource(attributes={
"service.name": attributes,
"instance_id": os.getpid()
Expand Down

0 comments on commit e73c69a

Please sign in to comment.