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