Made docker-gen being run once just before logrotate, fixed logrotate config and moved some stuff to env vars