cloud-game/docker-compose.yml
sergystepanov 728b2a49f0
Add GStreamer (#504)
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.
2026-06-28 22:20:31 +03:00

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: