mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-11 12:09:25 +00:00
- Install the Docker CLI with its Compose and Buildx plugins, and the GitHub CLI, from Docker's and GitHub's signed apt repositories; drop their home installs and the GitLab CLI from the README. - Select the shell with SHELL and the start folder with DEFAULT_WORKSPACE instead of chsh and working_dir. - Add an optional CODE_SERVER_APP_NAME. - Document installing Java with SDKMAN.
24 lines
703 B
YAML
24 lines
703 B
YAML
services:
|
|
code-server:
|
|
build: .
|
|
restart: unless-stopped
|
|
hostname: ${SERVICE_HOSTNAME}
|
|
environment:
|
|
- PASSWORD=${PASSWORD:?required}
|
|
- TZ=Asia/Ho_Chi_Minh
|
|
- DEFAULT_WORKSPACE=/workspace
|
|
- SHELL=/bin/zsh
|
|
- GIT_AUTHOR_NAME=${GIT_NAME}
|
|
- GIT_AUTHOR_EMAIL=${GIT_EMAIL}
|
|
- GIT_COMMITTER_NAME=${GIT_NAME}
|
|
- GIT_COMMITTER_EMAIL=${GIT_EMAIL}
|
|
- HOST=${SERVICE_HOSTNAME}
|
|
# - CODE_SERVER_APP_NAME=${CODE_SERVER_APP_NAME:-code-server}
|
|
volumes:
|
|
- 'code-server-home:/home/coder'
|
|
- 'code-server-workspace:/workspace'
|
|
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
|
volumes:
|
|
code-server-home:
|
|
code-server-workspace:
|