Skip to content

Instantly share code, notes, and snippets.

@renamedquery
Last active January 7, 2022 21:28
Show Gist options
  • Save renamedquery/4882b9498f54edb11e9538b5b6841478 to your computer and use it in GitHub Desktop.
Save renamedquery/4882b9498f54edb11e9538b5b6841478 to your computer and use it in GitHub Desktop.
code-server config (with nvcc)
---
version: "2.1"
services:
cuda:
image: nvidia/cuda:11.4.0-runtime-ubi8
depends_on:
- code-server
code-server:
image: lscr.io/linuxserver/code-server
container_name: code-server-1
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- PASSWORD=`PASSWORD`
- SUDO_PASSWORD=`SUDO_PASSWORD`
- DEFAULT_WORKSPACE=`DEFAULT_WORKSPACE`
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- /path/to/appdata/config/CodeServer1:/config
ports:
- 8443:8443
- 8193:8193
- 8194:8194
- 8195:8195
- 8196:8196
- 8197:8197
- 8198:8198
- 8199:8199
restart: unless-stopped
runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
#!/bin/bash
apt update
apt install -y clang python3-pip vim htop nvidia-cuda-toolkit wget iputils-ping
apt upgrade -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment