Replies: 7 comments 7 replies
-
one more observation is that if we want to move local docker volumes to relative paths of system that would be great. |
Beta Was this translation helpful? Give feedback.
-
so that we can redeploy with consistent data anywhere |
Beta Was this translation helpful? Give feedback.
-
can we replace all names from all .env files with node IP ? |
Beta Was this translation helpful? Give feedback.
-
Hello @thatsk You should be able to deploy terrakube using docker compose or just plain docker but it will require a couple of changes, for example:
If you want to run a single node maybe you could just install minikube, it will be easier to setup. https://docs.terrakube.io/getting-started/deployment/minikube Keep in mind that if you want to self hosted and use all the feature like the terraform registry, terraform login, run terraform remote state operation you will have to use a valid TLS certificate to expose the API and Registry so terrafom CLI commands can work propertly( this is a restriction from terraform cli not Terrakube) |
Beta Was this translation helpful? Give feedback.
-
Thanks just taken in mind if you have private up instance with already dns has it. And it has docker-compose so that once you start we should just access IP or associated dns will work . /Etc/hosts entry will work if you are using local but if you are in VPN network and your instance is in that network developer will not edit hosts entry they willaccess hostname |
Beta Was this translation helpful? Give feedback.
-
That's totally correct we have private dns . And as we are saying we have single node terrakube with docker compose iam trying to install one more thing minio with local directory is also not working might be related to permission or user issue |
Beta Was this translation helpful? Give feedback.
-
Hello @alfespa17 , just chiming in here. Tried to setup Terrakube in the same way (running with docker compose on an EC2 instances on a private subnet, accessible through VPN) by following https://github.com/AzBuilder/terrakube/blob/main/docker-compose/README.md Got it started and could access the login page via the private IP, but got numerous console errors because by default, the web UI tried to access http://terrakube-dex and http://terrakube-api rather than just hosing request.hostname. I tried to edit env-config.js and change the URLs to use the private IP address, and then down/up the docker containers again, but that wasn't enough. I tried editing the .env files also, but this caused more issues. In the end, I just added the /etc/host lines to my local machine as well (not ideal as I'll need to tell other engineers to do this, was hoping to avoid that). After all that, I was able to access it via (http://terrakube-ui:3000) (with /etc/hosts pointing to private IP) and login but now I'm having some issues setting up a workspace. I was able to create an organisation ok, but it seems the default user doesn't have the right permissions to create the workspace. We're a small company. Using K8s/Helm is overkill for us, since we only need one organisation with one workspace. It would be very helpful if the docker compose route were amended to:
These three tweaks would make setup far simpler for people like myself who want to spin up a quick low resource Terrakube environment. |
Beta Was this translation helpful? Give feedback.
-
Hello Team,
I want to deploy terrakube with private Ip or public IP of a node with docker-compose installation but documentation is restricted to localhost only. So if someone guides me where to edit all the files it would be benefit for me to run in production without k8s
Beta Was this translation helpful? Give feedback.
All reactions