docker-unity-accelerator icon indicating copy to clipboard operation
docker-unity-accelerator copied to clipboard

Add a section on how to configure user/password for unity-accelerator dashboard

Open FilipSivak opened this issue 5 years ago • 2 comments

Hi!

First of all thanks for great work! It puzzled me what was the default account/password for dashboard until I've figured there is non. Having short info on how to actually go into container and change it could be useful.

Thanks!

FilipSivak avatar Oct 27 '20 15:10 FilipSivak

Thank you. You can also use environment variables for the username and password. How about these methods?

modify accelerator.env

USER=foo
PASSWORD=bar

or modify docker-compose.yml

accelerator:
  environment:
    - USER=foo
    - PASSWORD=bar

or alternative modify docker-compose.yml

# on shell
USER=foo
PASSWORD=bar

and

accelerator:
  environment:
    - USER
    - PASSWORD

see also

  • https://docs.unity3d.com/Manual/UnityAccelerator.html#docker
  • https://docs.docker.com/compose/environment-variables/

shiena avatar Oct 28 '20 05:10 shiena

@shiena Yes, you are correct. I guess I should have read Unity documentation on containers more thoroughly. However, I was thrown off by the dashboard having no configured account by default. I think including the "admin/admin" account in accelerator.env to have the container work out of the box might help others with rapid adoption / quick hacking.

FilipSivak avatar Nov 15 '20 10:11 FilipSivak