Dallinger / Dallinger

Laboratory automation for the behavioral and social sciences; human culture on a chip.
https://dallinger.readthedocs.io/
MIT License
117 stars 36 forks source link

Automatically set up a Dozzle service on the docker-ssh server #5128

Open pmcharrison opened 1 year ago

pmcharrison commented 1 year ago

Dozzle provides a nice way to monitor the full set of docker-compose apps on a given web server. We have manually set up such a service on one of our servers using the instructions below, but we would like this service to be automatically provisioned on docker-ssh deploy.

We might want to think about how to name the service and its URL. Maybe simply logs? So you would access it via something like https://logs.152.111.126.32.nip.io.

I'm not so sure on the best way to set the password in a way that works well for multiple different people using the same server. It could be pulled from dallingerconfig, but you don't want different people overwriting the password with different values by mistake. Maybe we should (a) skip setting the password if none is set in dallingerconfig, and (b) throw a confirmation dialog if the dallingerconfig contains a password that is different from the remote one.

But on reflection, dallingerconfig variables are propagated to experiment docker-compose ymls, which seems like the wrong place for a server-wide variable to be. So maybe instead we should store it somewhere else, like a global text file... And then instead of the password going in dallingerconfig, we instead get the user to enter it via the terminal when they are setting up the server, if the password doesn't exist already.

Setup instructions

On the remote server:

pmcharrison commented 1 year ago

Hi @polvanrijn, I moved your comment here.