Workflow update

main
technorabilia 2 years ago
parent fe5b49a06a
commit 48345a36be

@ -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

@ -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

@ -0,0 +1,3 @@
ln -s ../docker-env.cfg ./.env
. ./.env
mkdir -p ${BASEDIR:-/volume1/docker}/openvscode-server/config
Loading…
Cancel
Save