Jelajahi Sumber

Added Code-Server

DrMxrcy 3 tahun lalu
induk
melakukan
c7f2c2c701

+ 1 - 0
README.md

@@ -13,6 +13,7 @@
 Tipi is a personal homeserver orchestrator. It is running docker containers under the hood and provides a simple web interface to manage them. Every service comes with an opinionated configuration in order to remove the need for manual configuration and network setup.
 
 ## Apps available
+- [Code-Server](https://github.com/filebrowser/filebrowser) - Web VS Code
 - [Filebrowser](https://github.com/filebrowser/filebrowser) - Web File Browser
 - [Freshrss](https://github.com/FreshRSS/FreshRSS) - A free, self-hostable RSS aggregator
 - [Invidious](https://github.com/iv-org/invidious) - An alternative front-end to YouTube

+ 21 - 0
apps/code-server/config.json

@@ -0,0 +1,21 @@
+{
+    "name": "Code-Server - Web VS Code",
+    "port": 8443,
+    "id": "code-server",
+    "description": "",
+    "short_desc": "Code-server is VS Code running on a remote server, accessible through the browser.",
+    "author": "https://github.com/coder",
+    "source": "https://github.com/linuxserver/docker-code-server",
+    "image": "https://avatars.githubusercontent.com/u/95932066",
+    "form_fields": {
+      "password": {
+        "type": "password",
+        "label": "Password",
+        "max": 50,
+        "min": 3,
+        "required": true,
+        "env_variable": "CODESERVER_PASSWORD"
+      }
+    }
+  }
+  

+ 20 - 0
apps/code-server/docker-compose.yml

@@ -0,0 +1,20 @@
+---
+version: "2.1"
+services:
+  code-server:
+    image: lscr.io/linuxserver/code-server:latest
+    container_name: code-server
+    environment:
+      - PUID=1000
+      - PGID=1000
+      - TZ=${TZ}
+      - PASSWORD=${CODESERVER_PASSWORD}
+      - DEFAULT_WORKSPACE=/config/workspace #optional
+    volumes:
+      - ${APP_DATA_DIR}/data/code-server/config:/config #config dir
+      - ${APP_DATA_DIR}/data/code-server/projects:/projects
+    ports:
+      - ${APP_PORT}:8443
+    restart: unless-stopped
+    networks:
+      - tipi_main_network

+ 1 - 0
packages/system-api/src/config/apps.ts

@@ -16,4 +16,5 @@ export const appNames = [
   'invidious',
   'joplin',
   'homarr',
+  'code-server',
 ];