mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2025-12-20 02:51:14 +00:00
backup, other
This commit is contained in:
37
apps/other/code.md
Normal file
37
apps/other/code.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Code Server
|
||||
|
||||
VSCode in the browser!
|
||||
|
||||
<br>
|
||||
|
||||
- [Github repo](https://github.com/cdr/code-server)
|
||||
- [Docker Hub](https://hub.docker.com/r/linuxserver/code-server)
|
||||
|
||||
|
||||
## docker-compose.yml
|
||||
```yml
|
||||
---
|
||||
version: "2.1"
|
||||
services:
|
||||
code-server:
|
||||
image: linuxserver/code-server
|
||||
container_name: code-server
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:8443
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Dublin
|
||||
# - PASSWORD=password #optional
|
||||
# - SUDO_PASSWORD=password #optional
|
||||
- PROXY_DOMAIN=code.example.com #optional
|
||||
|
||||
# To get extensions from M$ store - add these:
|
||||
- SERVICE_URL=https://marketplace.visualstudio.com/_apis/public/gallery
|
||||
- ITEM_URL=https://marketplace.visualstudio.com/items
|
||||
volumes:
|
||||
- ./config:/config
|
||||
# folder that will show up in the Code file tree
|
||||
- /var/www/project1:/config/workspace/project1
|
||||
```
|
||||
Reference in New Issue
Block a user