mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-16 12:13:26 +00:00
Workflow update
This commit is contained in:
parent
fe5b49a06a
commit
48345a36be
28
lsio/openvscode-server/docker-compose.yaml
Normal file
28
lsio/openvscode-server/docker-compose.yaml
Normal file
@ -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
|
16
lsio/openvscode-server/docker-run.sh
Normal file
16
lsio/openvscode-server/docker-run.sh
Normal file
@ -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
|
3
lsio/openvscode-server/run-once.sh
Normal file
3
lsio/openvscode-server/run-once.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ln -s ../docker-env.cfg ./.env
|
||||||
|
. ./.env
|
||||||
|
mkdir -p ${BASEDIR:-/volume1/docker}/openvscode-server/config
|
Loading…
Reference in New Issue
Block a user