cloud-game/docker-compose.yml
sergystepanov 924d6ade67
Fix Docker run for bridged Docker network in Windows, macOS (#259)
* Add port and IP config and env params for bridged Docker network in Windows, macOS

- CLOUD_GAME_WEBRTC_ICEIPMAP -- replaces IP of any ICE candidates on the server
- CLOUD_GAME_WEBRTC_ICEPORTS_MIN/MAX -- limits WebRTC random port range on the server
2021-01-08 22:43:15 +03:00

24 lines
613 B
YAML
Vendored

version: '3'
services:
cloud-game:
build: .
image: cloud-game-local
container_name: cloud-game-local
privileged: true
environment:
- DISPLAY=:99
- MESA_GL_VERSION_OVERRIDE=3.3
# network_mode: "host"
command: >
bash -c "Xvfb :99 & coordinator --v=5 & worker --coordinatorhost localhost:8000"
ports:
- "8000:8000"
- "9000:9000"
volumes:
# keep cores persistent in the cloud-game_cores volume
- cores:/usr/local/share/cloud-game/assets/cores
- ${CLOUD_GAME_GAMES_PATH}:/usr/local/share/cloud-game/assets/games
volumes:
cores: