Open carrollgt91 opened 4 years ago
Not really sure if this is the solution we are looking for, but if you add restart: always
it will continuously try to restart the container, e.g.
version: '3'
services:
server:
image: openmined/pis:latest
build: ./server/
restart: always
Ah, that's great! I don't think it's a 100% ideal solution, as it does delay before restarting as opposed to doing it "on-save" of a file, but it's better than not having it in place at all. Thanks!
Hi!
I just pushed a PR proposing to use supervisor to target this issue. However, I wanted to document that if supervisor is not desired as a dependency for this case, it could still be possible to make a custom script like the official Docker documentation suggests: https://docs.docker.com/config/containers/multi-service_container/.
Currently, when you save a python file on the server that causes a syntax error, it crashes the docker container, and you have to restart it. Ideally, it would continue trying to hot-reload the application without requiring you to restart the container.