mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-04 02:12:48 +00:00
pnpm is not used anywhere -- npm is the package manager everywhere -- so the mod that installs it is dead weight on every container start. INSTALL_PACKAGES loses apache2-utils, bfs, ffmpeg, imagemagick, librsvg2-bin, lsof, psmisc and ugrep, and gains glab. Each entry is re-resolved by apt on every start, so the list is kept to what is actually reached for.
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
services:
|
|
code-server:
|
|
image: 'lscr.io/linuxserver/code-server:latest'
|
|
hostname: ${SERVICE_HOSTNAME}
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Asia/Ho_Chi_Minh
|
|
# Hostname zsh's prompt reads, overriding the one Coolify injects.
|
|
- HOST=${SERVICE_HOSTNAME}
|
|
- 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-python3|linuxserver/mods:code-server-zsh'
|
|
- INSTALL_PACKAGES=gh|git|glab|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:
|