Files
zed-playground/docker-compose.yml

29 lines
751 B
YAML

services:
zed:
build:
context: .
dockerfile: Dockerfile
network: host
container_name: zed-dev
shm_size: "8gb"
volumes:
- .:/workspaces/zed-playground:cached
- /tmp/.X11-unix:/tmp/.X11-unix:rw
working_dir: /workspaces/zed-playground
environment:
DISPLAY: "${DISPLAY}"
NVIDIA_VISIBLE_DEVICES: "all"
NVIDIA_DRIVER_CAPABILITIES: "compute,graphics,utility,video"
HTTP_PROXY: "http://127.0.0.1:36000"
HTTPS_PROXY: "http://127.0.0.1:36000"
NO_PROXY: "localhost,127.0.0.1,::1,host.docker.internal"
privileged: true
devices:
- /dev/bus/usb:/dev/bus/usb
gpus: all
network_mode: host
group_add:
- video
stdin_open: true
tty: true