You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/templates/fly-docker-image/README.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,18 @@ verified: true
7
7
tags: [fly, container]
8
8
---
9
9
10
-
# Coder Fly.io Template
10
+
# Remote Development on Fly.io Machines
11
11
12
-
This template provisions a [code-server](https://github.com/coder/code-server) instance on [fly.io](https://fly.io) using the [codercom/code-server](https://hub.docker.com/r/codercom/code-server) image.
12
+
Provision Fly.io Machines as [Coder workspaces](https://coder.com/docs/coder-v2/latest) with this example template.
> flyctl secrets set FLY_API_TOKEN=$(flyctl auth token) --app <your-coder-app-name>
35
37
>```
36
38
37
-
> Read our blog [post](coder.com/blog/deploying-coder-on-fly-io) to learn more about how to deploy Coder on fly.io.
38
-
39
39
4. Navigate to the Coder dashboard and create a new workspace using the template.
40
40
41
-
This is all. You should now have a code-server instance running on fly.io.
41
+
## Architecture
42
+
43
+
This template provisions the following resources:
44
+
45
+
- Fly.io Machine (ephemeral, deleted on stop)
46
+
- Fly.io Volume (persistent, mounted to `/home/coder`)
47
+
48
+
This means, when the workspace restarts, any tools or files outside of the home directory are not persisted. To pre-bake tools into the workspace (e.g. `python3`), modify the VM image, or use a [startup script](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/script).
49
+
50
+
>**Note**
51
+
> This template is designed to be a starting point! Edit the Terraform to extend the template to support your use case.
52
+
53
+
---
54
+
55
+
Read our blog [post](coder.com/blog/deploying-coder-on-fly-io) to learn more about how to deploy Coder on fly.io.
0 commit comments