mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 10:35:44 +00:00
Docker-compose does not support host mode along with the port binding anymore. Additionally there is no necessity for using port binding under current configuration since it takes no effect.
21 lines
560 B
YAML
Vendored
21 lines
560 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"
|
|
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:
|