Hello, what would be the easiest way to include h...
# hamilton-help
v
Hello, what would be the easiest way to include hamilton-ui in a docker-compose file? Are there already hamilton-ui images available somewhere?
t
You can see the docker-compose file we use for local setup. The images used for the backend and frontend are on DockerHub. You will also need to connect to a postgres database (see docker-compose) There are more files under hamilton/ui/deployment that you could find useful
v
Ok thanks. This docker-compose file requires some additional code from the github repo (Dokerfile in build step and ./backend in volumes). Is this optional?
Copy code
build:
        context: ./
        dockerfile: deployment/Dockerfile.backend
    entrypoint: ["/bin/bash", "-c", "cd /code/server && ls && ./entrypoint.sh"]
    volumes:
      - ./backend:/code
s
so the UI is a system that requires a few things: 1. a frontend 2. a backend server for the frontend to connect to 3. a database & filesystem and mounted volume (if using docker) for the persistence of data
Note: it likely would be possible to replace postgres with sqllite — so it would run in memory — but would still require some “volume” for persistence.
v
Ok. I´ve seen there is a docker-compose.yml and a docker-compose-prod.yml. Which one is a good starting point?
s
./run.sh
uses
docker-compose-prod.yml
by default. That will pull the images, rather than rebuild from scratch.
I would try that first
v
Ok thanks.
UI is running. Is there a default email user, or can I choose my own during the first login?
s
you choose that on first login — this what you’ll use pass to the Tracker object.
v
Ok. Thanks
Wow. This is awesome! Easy to use. Good overview. great for debugging and enhancing code. This even includes links into my github repo! Well done!
Found some minor bugs already. Should I open individual issues on github, or one for all?
s
If they’re related, one issue. If not individual ones please.
👍 1
thank you!