Steam-Headless / docker-steam-headless

A Headless Steam Docker image supporting NVIDIA GPU and accessible via Web UI
GNU General Public License v2.0
909 stars 89 forks source link

This docker is pure magic #36

Open chaos0frenzy opened 1 year ago

chaos0frenzy commented 1 year ago

Is your feature request related to a problem?

No response

What is your feature request?

This might not be the place for this but I wanted to thank you for all your work this is the coolest docker I have ever seen. I need you to know it’s greatly appreciated.

Are there any workarounds?

No response

Additional Context

No response

VoxTrek commented 1 year ago

Thank you so much for this docker container! I want to mention how good the quality is of this docker container. My homelab is Dell T150, nVidia T400 ;-) , 300 Watt PSU, 72 GB ECC RAM. 25TB ZFS. Proxmox and docker. Plex & Jellyfin with HW encoding.

Here is my docker-compose.yml file: Only had to add runtime: nvidia to force the docker container to install nvidia gpu drivers. The sound worked directly via the web NOVNC access or via Steam client.

version: '3'

services: steam-headless: container_name: steam image: josh5/steam-headless:latest restart: unless-stopped runtime: nvidia

NOTE: Requires privileged access to host to be able to access the required devices

privileged: true
shm_size: 2GB
ipc: host # Could also be set to 'shareable'
ulimits:
  nofile:
    soft: 1024
    hard: 524288

# NETWORK:
## NOTE:  Steam headless always requires the use of the host network.
##        If we do not use the host network, then device input is not possible
##        and your controllers will not work in steam games.
network_mode: host
hostname: steam
extra_hosts:
  - "dell:192.168.0.187"

# ENVIRONMENT:
## Read all config variables from the .env file
#env_file: .env

# VOLUMES:
volumes:
  # The location of your home directory.
  - /shared/docker/steam/home/:/home/default/:rw
  # The location where all games should be installed.
  - /shared/docker/steam/games/:/mnt/games/:rw
  # Input devices used for mouse and joypad support inside the container.
  - /dev/input/:/dev/input/:ro
  # The Xorg socket. This will be shared with other containers so they can access the X server.
  #- /opt/container-data/steam-headless/.X11-unix/:/tmp/.X11-unix/:rw
  # Pulse audio socket. This will be shared with other containers so they can access the audio sink.
  #- /opt/container-data/steam-headless/pulse/:/tmp/pulse/:rw

Now we can play for example Half-life 2 with more than 60 fps running on the server streaming to a Steam client. Always nice to have an extra game system in the house.

Crydsch commented 1 year ago

I too, want to thank you for this project!

Having tried a lot of other things to get remote gaming to work .. and failing with all of them. This was the last one I found and to my surprise - it just works:tm: :D

I am using this with a nvidia GPU and even the hardware acceleration just worked out of box. Now I can game on a very old low powered laptop by using the already existing GPU server.

Thank you so much! <3

stuCONNERS1983 commented 1 year ago

This is an amazing docker container. Works fantastic on Open Media Vault with full GPU access. Thank-you for your hard work.

Josh5 commented 1 year ago

It is so cool to hear feedback like this. This absolutely makes my day!

tnielsen2 commented 1 year ago

Yes, thank you very much for your work on this project. I sent a coffee your way as a way to say thanks!

ponlayookm commented 1 year ago

I'm using Azure's GRID driver, and I think the script's downloaded normal 535 makes X11 crash every time. In order for Tesla T4 cards to operate in 3D graphic mode, it needs GRID driver. https://www.youtube.com/watch?v=5nLhKhnQRjo

Maxoobidou commented 1 year ago

I can't install it yet (waiting for it to be available on Truenas), but I wanted to thank you too for taking on the challenge. This looks awesome and I can't wait to try it !

Josh5 commented 1 year ago

I can't install it yet (waiting for it to be available on Truenas), but I wanted to thank you too for taking on the challenge. This looks awesome and I can't wait to try it !

Truenas scale?

Maxoobidou commented 12 months ago

Yes ! They've been really growing the official community apps repo lately, would be cool if Steam-headless could get on there :) If not, Truecharts is a third-party repo that is easy to use too.

Josh5 commented 12 months ago

Yes ! They've been really growing the official community apps repo lately, would be cool if Steam-headless could get on there :) If not, Truecharts is a third-party repo that is easy to use too.

Would you consider sponsoring a TrueNAS Scale development box?

Cheerpipe commented 11 months ago

Also want to say "Thanks".

Steam Headless is working incredible well in my Ubuntu Home Server, even with an nvidia card. It is just magic!.

Steam Headless is also incredible flexible, extensible and customizable. I learned a lot of new thing (Linux noob here) creating my init.d scripts. Things like libstrangle and gamemode works well. Gamescope don't work because a nvidia bug but it will get fixed in the next driver release acording to nvidia reps (hope so).

PD: Also using the WOL feature and it works well, i just changed the timeout from 60 to 15 minutes to save more energy (Would be nice control WOL timeout using a env variable at docker level). It was a clever idea use a "simulated" sleep state and use wol packet to just start services again.

Maxoobidou commented 10 months ago

Yes ! They've been really growing the official community apps repo lately, would be cool if Steam-headless could get on there :) If not, Truecharts is a third-party repo that is easy to use too.

Would you consider sponsoring a TrueNAS Scale development box?

Yes ! Sorry for the late reply, didn't catch the message. What would that entails ? Truenas scale can be installed on pretty much anything. I can also do tests on my side if needed, I have an old AMD card lying around somewhere.

andremmfaria commented 6 months ago

As many others mentioned already. I would like to say THANKS (caps) to you for doing this. I have a TrueNas with an NVIDIA card and recently found this project on truecharts. image

I would just like to reiterate the creation of documentation for anyone who would like to use this project with TrueNas. I would be interested in being part of that documentation if needed.

Thanks a lot for your hard work.

Josh5 commented 6 months ago

As many others mentioned already. I would like to say THANKS (caps) to you for doing this. I have a TrueNas with an NVIDIA card and recently found this project on truecharts. image

I would just like to reiterate the creation of documentation for anyone who would like to use this project with TrueNas. I would be interested in being part of that documentation if needed.

Thanks a lot for your hard work.

Awesome. I am thinking about creating a docs site for this project soon. Help with this TrueNAS documentation would be very welcome.

Fuckingnameless commented 6 months ago

I'm using Azure's GRID driver, and I think the script's downloaded normal 535 makes X11 crash every time. In order for Tesla T4 cards to operate in 3D graphic mode, it needs GRID driver. https://www.youtube.com/watch?v=5nLhKhnQRjo

do you know if tesla pascal needs grid drivers?