Compose-Library/vscode-lsio.compose.yaml.txt
2025-01-25 18:01:48 +01:00

25 lines
677 B
Text
Executable file

services:
code-server:
image: lscr.io/linuxserver/code-server:latest
container_name: code-server-${DOMAIN}-${UID}-${IP}-${PORT}
environment:
- PUID=${UID}
- PGID=${UID}
- TZ=${TIMEZONE}
- PASSWORD=${USER_PASSWORD}
- SUDO_PASSWORD=${SUDO_PASSWORD}
- PROXY_DOMAIN=${DOMAIN}
- DEFAULT_WORKSPACE=/${WORKSPACE_NAME} #optional
volumes:
- ${DATA_DIR}/config:/config
- ${WORKSPACE_DIR}:/${WORKSPACE_NAME}
ports:
- ${IP}:${PORT}:8443
restart: always
deploy:
resources:
limits:
memory: ${SPECS_MAX_RAM}
reservations:
memory: ${SPECS_MIN_RAM}
networks: {}