Error applying "Configuring Remote Interpreter via DockerCompose" sample
Hi,
The sample is working like it is written. (Your sample) What about adding an Nginx to compose file?
I am adding an nginx service before the web service and adding a web service dependency to it. So if docker-compose builds nginx service, all the services are built. When I run docker-compose up in terminal, it is working as we expected.
But I didn't setup the pycharm settings. Because I didn't show a proper python interpreter to Pycharm.
1. When I choose nginx service -instead of web explaining on sample- I am getting this error:
Cannot start service nginx: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"python\": executable file not found in $PATH": unknown -----
And when I checked the interpreter settings windows it says, "Python packaging tools not found. Install packaging tools." When I click it it gives me same error above.
2. When I choose web service, yes pycharm docker compose is building containers but my application is not working without nginx service running
3. When I choose web and depend_on it to nginx, again my application is not working properly. I guess first the django application should run and then Nginx should run. I don't have any experience about it, if someone has please write here.
What can be the proper configuration-solution?
Thanks.
Please sign in to leave a comment.
I just do a workaround. The 3. way is the solution.
3. "When I choose web and depend_on it to nginx, again my application is not working properly. I guess first the django application should run and then Nginx should run...
I added only one line to nginx service: