Hi,
I am running django app with DRF in docker-compose like this: version: '2' services: nginx: build: config/nginx/. container_name: nginx ports: - "8000:8000" depends_on: - web volumes: - static:/usr/src/app/static/:ro web: container_name: django-app depends_on: - db expose: - "8000" volumes: - static:/usr/src/app/static/ db: image: postgres:9-alpine container_name: db volumes: static: # static files for gwiqie-django It works fine, but when I go to mydomain.com/docs, I can see the documentation rendered correctly with all endpoints, but I cannot use interaction because instead of trying e.g. http://*mydomain.com*/api/myendpoint it is trying to reach e.g. http://*web*/api/myendpoint/. It is using the hostname of the container instead the URL it is hosted on. Is there a way how to solve this? Thanks! -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
