mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-18 15:25:41 +00:00
41 lines
2.0 KiB
YAML
41 lines
2.0 KiB
YAML
# [Code-server](https://coder.com) is VS Code running on a remote server,
|
|
# accessible through the browser. - Code on your Chromebook, tablet, and laptop
|
|
# with a consistent dev environment. - If you have a Windows or Mac workstation,
|
|
# more easily develop for Linux. - Take advantage of large cloud servers to
|
|
# speed up tests, compilations, downloads, and more. - Preserve battery life
|
|
# when you're on the go. - All intensive computation runs on your server. -
|
|
# You're no longer running excess instances of Chrome.
|
|
|
|
---
|
|
version: "2.1"
|
|
services:
|
|
code-server:
|
|
image: ghcr.io/linuxserver/code-server
|
|
container_name: code-server
|
|
environment:
|
|
# for UserID
|
|
- PUID=${PUID:-1024}
|
|
# for GroupID
|
|
- PGID=${PGID:-100}
|
|
# Specify a timezone to use for example Europe/Amsterdam
|
|
- TZ=${TZ:-Europe/Amsterdam}
|
|
# Optional web gui password, if `PASSWORD` or `HASHED_PASSWORD` is not provided, there will be no auth.
|
|
- PASSWORD=password # optional
|
|
# Optional web gui password, overrides `PASSWORD`, instructions on how to create it is below.
|
|
- HASHED_PASSWORD= # optional
|
|
# If this optional variable is set, user will have sudo access in the code-server terminal with the specified password.
|
|
- SUDO_PASSWORD=password # optional
|
|
# Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`.
|
|
- SUDO_PASSWORD_HASH= # optional
|
|
# If this optional variable is set, this domain will be proxied for subdomain proxying. See [Documentation](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#sub-domains)
|
|
- PROXY_DOMAIN=code-server.my.domain # optional
|
|
# If this optional variable is set, code-server will open this directory by default
|
|
- DEFAULT_WORKSPACE=/config/workspace # optional
|
|
volumes:
|
|
# Contains all relevant configuration files.
|
|
- ${BASEDIR:-/volume1/docker}/code-server/config:/config
|
|
ports:
|
|
# web gui
|
|
- 8443:8443
|
|
restart: unless-stopped
|