fly-apps/docker
mat ess 79c3373e2f Add docker port 2022-12-03 14:08:30 -05:00
..
docker-entrypoint.d Add 'docker/' from commit '40df5c877e3894e7c62fe21ddba6ddfe50cc96a0' 2022-10-19 01:18:41 -04:00
etc/docker Add 'docker/' from commit '40df5c877e3894e7c62fe21ddba6ddfe50cc96a0' 2022-10-19 01:18:41 -04:00
Dockerfile Add 'docker/' from commit '40df5c877e3894e7c62fe21ddba6ddfe50cc96a0' 2022-10-19 01:18:41 -04:00
README.md Add 'docker/' from commit '40df5c877e3894e7c62fe21ddba6ddfe50cc96a0' 2022-10-19 01:18:41 -04:00
entrypoint Add 'docker/' from commit '40df5c877e3894e7c62fe21ddba6ddfe50cc96a0' 2022-10-19 01:18:41 -04:00
fly.toml Add docker port 2022-12-03 14:08:30 -05:00

README.md

Fly Docker Daemon

This is a Docker Daemon that runs on Fly.io and can be used to offload builds and other tasks to a Fly app running in a city near you.

Installation

  1. Clone this repository
  2. fly launch, follow the prompts
  3. Select n when it asks if you want to deploy
  4. Create a volume in a region of your choice: fly volumes create data --size 50 --region ord
  5. Deploy

Get Connected

  1. Create a WireGuard peer with fly wireguard create
  2. Setup WireGuard with generated config
  3. fly ips private to get the IP of your Daemon
  4. Set the DOCKER_HOST env variable using that IP:
    export DOCKER_HOST=tcp://[fdaa:0:5d2:a7b:81:0:26d4:2]:2375
    

Final Step

  1. Delete the Docker Engine from your local system.
  2. You probably want to scale your remote Daemon: fly scale vm dedicated-cpu-2x