diff --git a/lsio/openvscode-server/docker-compose.yaml b/lsio/openvscode-server/docker-compose.yaml new file mode 100644 index 0000000..7118a21 --- /dev/null +++ b/lsio/openvscode-server/docker-compose.yaml @@ -0,0 +1,28 @@ +# [Openvscode-server](https://github.com/gitpod-io/openvscode-server) provides a +# version of VS Code that runs a server on a remote machine and allows access +# through a modern web browser. + +--- +version: "2.1" +services: + openvscode-server: + image: ghcr.io/linuxserver/openvscode-server + container_name: openvscode-server + environment: + # for GroupID + - PUID=${PUID:-1024} + # for UserID + - PGID=${PGID:-100} + # Specify a timezone to use for example Europe/Amsterdam + - TZ=${TZ:-Europe/Amsterdam} + # Optional security token for accessing the Web UI. + - CONNECTION_TOKEN=supersecrettoken # optional + # Optional path to a file inside the container that contains the security token for accessing the Web UI (ie. `/path/to/file`). Overrides `CONNECTION_TOKEN`. + - CONNECTION_SECRET= # optional + volumes: + # Contains all relevant configuration files. + - ${BASEDIR:-/volume1/docker}/openvscode-server/config:/config + ports: + # Web UI port. + - 3000:3000 + restart: unless-stopped diff --git a/lsio/openvscode-server/docker-run.sh b/lsio/openvscode-server/docker-run.sh new file mode 100644 index 0000000..aac895c --- /dev/null +++ b/lsio/openvscode-server/docker-run.sh @@ -0,0 +1,16 @@ +# [Openvscode-server](https://github.com/gitpod-io/openvscode-server) provides a +# version of VS Code that runs a server on a remote machine and allows access +# through a modern web browser. + +source ./.env +docker run -d \ + --name=openvscode-server \ + -e PUID=${PUID:-1024} `# for GroupID` \ + -e PGID=${PGID:-100} `# for UserID` \ + -e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \ + -e CONNECTION_TOKEN=supersecrettoken `# optional` `# Optional security token for accessing the Web UI.` \ + -e CONNECTION_SECRET= `# optional` `# Optional path to a file inside the container that contains the security token for accessing the Web UI (ie. `/path/to/file`). Overrides `CONNECTION_TOKEN`.` \ + -p 3000:3000 `# Web UI port.` \ + -v ${BASEDIR:-/volume1/docker}/openvscode-server/config:/config `# Contains all relevant configuration files.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/openvscode-server diff --git a/lsio/openvscode-server/run-once.sh b/lsio/openvscode-server/run-once.sh new file mode 100644 index 0000000..6e84816 --- /dev/null +++ b/lsio/openvscode-server/run-once.sh @@ -0,0 +1,3 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/openvscode-server/config