You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
951 B
Bash
17 lines
951 B
Bash
3 years ago
|
# [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
|