Migration to v2 on instance created from setup script #2686
|
Our instance has been created by the setup script, so we have a single docker compose file with the database, the caddy proxy, and the defguard components all in one docker compose file, and until now I updated by changing the versions in the .env file that was created along the docker compose yaml. I just watched the video in the email that announced the v2 beta and I'm not certain on how to upgrade our installation since it's very different from having all components on a single host and in a single docker file. |
Replies: 2 comments 2 replies
|
@federicochiesa the protocol is simple: And that's it. After launching you will need to adopt the edge and gateway - in the wizard where you need to give the IP of these components just enter their docker names - similarly as on these video: https://youtu.be/DWQlyHmqMlo?t=402 |
|
Hi, I was busy with other projects and I'm trying the migration just now. If I use the original compose and I just edit the tags, the gateway adoption doesn't work. There seems no way to reach it. I tried everything(putting "gateway" as the IP, as I did for the edge component, putting the internal IP of the instance, localhost, 127.0.0.1...). The only thing that "works" (the gateway gets adopted but the VPN drops after 10 seconds with these errors: Invoking "all_instances" timed out after 10 seconds; Invoking "all_tunnels" timed out after 10 seconds) is removing the host network property of the gateway and only open port 50066. Nothing else will get the gateway adopted. I reverted the changes back to 1.6.x. Any suggestions without having to redo the whole install from scratch? I would not want to re-enroll all my users. |
@federicochiesa the protocol is simple:
0. ALWAYS backup your database / whole setup before migration/testing.
2. Update docker tags to "2.0.0-beta1"
3. Add volumes for proxy (now edge) and gateway - where SSL certificates for these components will be held:
And that's it. After launching you will need to adopt the edge and gateway - in the wizard where you need to give the IP of these components just enter their docker names - similarly as on these video: https://youtu.be/DWQlyHmqMlo?t=402