mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-17 16:50:31 +00:00
Old media pipe was replaced with GStreamer (go-gst). It is now possible to change encoders to any supported by GStreamer, provided the necessary plugins are installed on the system where cloud-retro is running. See params in config.go.
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
services:
|
|
cloud-game:
|
|
build: .
|
|
image: cloud-game-local
|
|
container_name: cloud-game-local
|
|
depends_on:
|
|
- xvfb
|
|
environment:
|
|
- DISPLAY=:99
|
|
- MESA_GL_VERSION_OVERRIDE=4.5
|
|
- CLOUD_GAME_WEBRTC_SINGLEPORT=8443
|
|
# - CLOUD_GAME_WEBRTC_ICEIPMAP=127.0.0.1
|
|
- CLOUD_GAME_COORDINATOR_DEBUG=true
|
|
- CLOUD_GAME_WORKER_DEBUG=true
|
|
- CLOUD_GAME_ENCODER_VIDEO_CODEC=vp8
|
|
# - PION_LOG_TRACE=all
|
|
ports:
|
|
- "8000:8000"
|
|
- "9000:9000"
|
|
- "8443:8443/udp"
|
|
command: >
|
|
bash -c "./coordinator & while [ ! -S /tmp/.X11-unix/X99 ]; do sleep 0.1; done; ./worker"
|
|
volumes:
|
|
- ./assets/cores:/usr/local/share/cloud-game/assets/cores
|
|
- ./assets/games:/usr/local/share/cloud-game/assets/games
|
|
- x11:/tmp/.X11-unix
|
|
|
|
xvfb:
|
|
image: kcollins/xvfb:latest
|
|
entrypoint: ["sh", "-c"]
|
|
command:
|
|
[
|
|
"rm -f /tmp/.X99-lock /tmp/.X11-unix/X99 && exec Xvfb :99 -screen 0 320x240x16",
|
|
]
|
|
volumes:
|
|
- x11:/tmp/.X11-unix
|
|
|
|
volumes:
|
|
x11:
|