mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-13 02:14:35 +00:00
feat: add code-server service and repo scaffolding
Set up the per-service layout: each service directory holds compose.yml with a committed .env.example and a gitignored .env. Add code-server as the first service, plus a README and CLAUDE.md documenting that these files target Coolify/Dokploy and deliberately omit ports and restart policies.
This commit is contained in:
1 parent
0ab29485cb
commit
550d1d1741
5 files changed
+165
-1
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# Copy to .env and fill in. Never commit .env.
|
||||
#
|
||||
# cp .env.example .env
|
||||
|
||||
# Web UI login password. MUST NOT be blank -- the LinuxServer image serves
|
||||
# code-server without authentication when PASSWORD is empty.
|
||||
# Also used for SUDO_PASSWORD inside the container.
|
||||
# Generate one with: openssl rand -base64 24
|
||||
PASSWORD=
|
||||
|
||||
# Git identity baked into the container (author + committer).
|
||||
GIT_NAME=
|
||||
GIT_EMAIL=
|
||||
|
||||
# OpenAI Codex CLI auth token. Leave blank if you don't use Codex.
|
||||
CODEX_ACCESS_TOKEN=
|
||||
@@ -0,0 +1,24 @@
|
||||
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}
|
||||
- CODEX_ACCESS_TOKEN=${CODEX_ACCESS_TOKEN}
|
||||
volumes:
|
||||
- 'code-server-config:/config'
|
||||
volumes:
|
||||
code-server-config:
|
||||
Reference in new issue
Block a user