Deploy code-server on Pethost in one click
VS Code in the browser
What happens
- You sign in to Pethost or make an account, with a passkey, GitHub or Google.
- No machine yet? You pick a plan, and we prepare one for you. The link waits in your browser until it is ready.
- New project opens at the app. You fill in what it asks for and click Create project: Password.
- In a minute or two the app is live at its own address with HTTPS. Its secrets are made for it at random, and its data is in the nightly backup.
- It is a project like any other: its compose.yaml, its .env, its logs and a terminal are in the panel, and your agent can change it, roll it back or restore it.
First steps
Sign in with the password you gave. Keep your work under /home/coder: that folder is kept, and what is installed outside it is gone when the container is made anew.
What it runs
The template is this compose.yaml and the variables it writes into the project’s .env. Pethost runs the file as it is written.
services:
code-server:
image: codercom/code-server:4.141.0
restart: unless-stopped
environment:
PASSWORD: ${PASSWORD}
volumes:
- home:/home/coder
volumes:
home: