Closed penut85420 closed 3 years ago
I temporarily sovle this problem by re-packing the docker image with my nginx config file, but i'm still wondering a more flexible solution
I would highly recommend to use an nginx on the host machine as a proxy and proxy_pass
to the docker container, so that you don't have to modify the container.
Would that work for you?
Thanks! I am not really familiar with these things actually, I'll try it.
I deploy domserver and judgehost seperately using docker, but when I try to put my ssl cert into container, it just doesn't work. I use the following dockerfile
and the content of default is
Then i
docker exec -it domserver /bin/bash
in to container, i see the default in/home
but the default in/etc/nginx/sites-enabled/
is the original config file. I overwrite the default and reload nginx usingservice nginx reload
but the website i see is the default website of nginx.What step did i miss?