mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-05 20:14:53 +00:00
Bind-mount /var/run/docker.sock so the universal-docker mod's CLI has a daemon to talk to, and document the sibling-container and permission caveats in the service README.
25 lines
1.0 KiB
YAML
25 lines
1.0 KiB
YAML
services:
|
|
code-server:
|
|
image: 'lscr.io/linuxserver/code-server:latest'
|
|
hostname: miti99-cs
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Asia/Ho_Chi_Minh
|
|
- DEFAULT_WORKSPACE=/config/workspace
|
|
- PWA_APPNAME=code-server
|
|
- 'DOCKER_MODS=linuxserver/mods:universal-package-install|linuxserver/mods:universal-docker|linuxserver/mods:code-server-golang|linuxserver/mods:code-server-nodejs|linuxserver/mods:code-server-npmglobal|linuxserver/mods:code-server-pnpm|linuxserver/mods:code-server-python3|linuxserver/mods:code-server-zsh'
|
|
- INSTALL_PACKAGES=apache2-utils|bfs|ffmpeg|gh|git|imagemagick|librsvg2-bin|lsof|psmisc|ugrep|unzip|zip
|
|
- NODEJS_MOD_VERSION=24
|
|
- PASSWORD=${PASSWORD}
|
|
- SUDO_PASSWORD=${PASSWORD}
|
|
- GIT_AUTHOR_NAME=${GIT_NAME}
|
|
- GIT_AUTHOR_EMAIL=${GIT_EMAIL}
|
|
- GIT_COMMITTER_NAME=${GIT_NAME}
|
|
- GIT_COMMITTER_EMAIL=${GIT_EMAIL}
|
|
volumes:
|
|
- 'code-server-config:/config'
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
volumes:
|
|
code-server-config:
|