mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
- Replace VOL_PATH with VOL_PROJECTS for project mounts - Remove unused opencode /data volume - Update sample.env and AGENTS.md with VOL_PROJECTS convention
26 lines
613 B
YAML
26 lines
613 B
YAML
# Code Server
|
|
|
|
services:
|
|
code-server:
|
|
image: ${VSCODE_IMAGE:-lscr.io/linuxserver/code-server:latest}
|
|
restart: ${VSCODE_RESTART:-unless-stopped}
|
|
|
|
volumes:
|
|
- ${VOL_PROJECTS:-/data/projects}:/data
|
|
- ${VOL_PATH:-./data}/vscode/config:/config
|
|
|
|
environment:
|
|
# App-specific
|
|
- PUID=${VSCODE_PUID:-1000}
|
|
- PGID=${VSCODE_PGID:-1000}
|
|
- PASSWORD=${VSCODE_PASSWORD:-RanDoMChangeMe}
|
|
- DEFAULT_WORKSPACE=${DEFAULT_WORKSPACE:-/data}
|
|
- PROXY_DOMAIN=${VSCODE_DOMAIN:-localhost}
|
|
|
|
ports:
|
|
- "${VSCODE_PORT:-8443}:8443"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|