Reinstate mode declaration for logs and cache - these need to be writable
Use the VMs IP address in our database config

This means we can run migrations from the host machine and it should
still (usually) work.