Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement hoster vm deploy --from-docker-compose flag #81

Open
yaroslav-gwit opened this issue Nov 12, 2023 · 0 comments
Open

Implement hoster vm deploy --from-docker-compose flag #81

yaroslav-gwit opened this issue Nov 12, 2023 · 0 comments
Assignees
Labels
new feature Label to apply to new features development

Comments

@yaroslav-gwit
Copy link
Owner

yaroslav-gwit commented Nov 12, 2023

hoster vm deploy --from-docker-compose /root/nextcloud/docker-compose.yaml will help you start any docker workload in seconds on top of a Debian Stable VM (FreeBSD doesn't natively support docker).

Here is outline of the process behind the scenes:

  • manually download (and edit if needed) docker-compose.yaml file to the local file system on Hoster node itself
  • execute hoster vm deploy --from-docker-compose /root/nextcloud/docker-compose.yaml, pointing to your local docker-compose.yaml file
  • Hoster will deploy a custom VM, based on top of Debian Stable, with docker and docker-compose pre-installed
  • Hoster will mount a folder within the VM itself, using VirtIO 9P
  • docker-compose.yaml file will be copied into that folder
  • VM will execute that docker-compose.yaml on the first boot
  • docker-compose up will be executed within a tmux session, so you can SSH into the VM and check what happened in the background using tmux -a
  • docker-compose.yaml will be copied to /root/hoster-docker-compose/docker-compose.yaml

P.S. try keeping all your docker volumes in ./ for maximum data locality, so in case you'd need to migrate your docker-compose deployment to a newer VM version (or another host) it will be very easy to do.

@yaroslav-gwit yaroslav-gwit added the enhancement New feature or request label Nov 12, 2023
@yaroslav-gwit yaroslav-gwit self-assigned this Nov 12, 2023
@yaroslav-gwit yaroslav-gwit moved this to Todo in Hoster Dec 4, 2023
@yaroslav-gwit yaroslav-gwit changed the title Implement hoster vm deploy --from-compose flag Implement hoster vm deploy --from-docker-compose flag Jan 7, 2024
@yaroslav-gwit yaroslav-gwit added new feature Label to apply to new features development and removed enhancement New feature or request labels Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Label to apply to new features development
Projects
Status: Todo
Development

No branches or pull requests

1 participant