unit from docker and minimum python app: how to setup #1475
Replies: 1 comment
-
So for reference I split the config and the app in two different directories, mounting them separately and now its working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking into unit for a python app use case.
I start with a minimum container using docker like this
docker run -d --name unit --mount type=bind,src="$(pwd)",dst=/www/ -p 8080:8000 unit:1.33.0-python3.11
unit looks happy with some logs from the container:
Next step is to add a config with a minimum python app described in docs https://unit.nginx.org/howto/samples/#python
with app looking like this inside the container:
and config:
However restarting with this container
new config gives me:
If I look into the container, start python and try to import the wsgi, it works fine.
So it is something fundamentally I'm not understanding here.
Any idea what I'm not getting right here?
Beta Was this translation helpful? Give feedback.
All reactions