mirror of
https://github.com/rommapp/romm.git
synced 2026-10-12 02:21:58 +00:00
A webstation container that mounts the library at /romm/library, like RomM, needs no library_path, so the example comments it out and says when to set it. The dev compose comment now says why the host-run dev backend still needs it.
40 lines
1.5 KiB
YAML
40 lines
1.5 KiB
YAML
# Real webstation container (emulators + romm-broker) for streaming development,
|
|
# opt-in because the image is amd64-only and several GB:
|
|
# docker compose -f docker-compose.streaming.yml up -d
|
|
#
|
|
# Its own compose project, so a `down --remove-orphans` here can never reach the
|
|
# dev stack. Joins romm_default, so bring the dev stack up first; see config.yml's
|
|
# `broker_host` (server to server) vs `host` (browser) for how it is reached.
|
|
name: romm-streaming
|
|
|
|
services:
|
|
romm-webstation:
|
|
image: lscr.io/linuxserver/webstation:romm
|
|
# No arm64 image exists; on Apple silicon this runs under emulation and
|
|
# has no GPU, so the desktop renders but most emulators will not.
|
|
platform: linux/amd64
|
|
container_name: romm-webstation
|
|
environment:
|
|
- PUID=${PUID:-1000}
|
|
- PGID=${PGID:-1000}
|
|
- TZ=Etc/UTC
|
|
- SUBFOLDER=/streaming/
|
|
- BROKER_SECRET=${STREAMING_BROKER_SECRET:-dev-secret}
|
|
volumes:
|
|
# Emulator configs, BIOS, save data, and the broker's export directory.
|
|
- ./romm_mock/webstation:/config
|
|
# Activate rejects any rom path outside /romm. The dev backend runs on
|
|
# the host, so romm_mock's config.yml sets library_path to this mount.
|
|
- ./romm_mock/library:/romm/library:ro
|
|
ports:
|
|
- "3010:3000" # HTTP, expects a reverse proxy in front
|
|
- "3011:3001" # HTTPS with a self-signed cert, for direct access
|
|
shm_size: "1gb"
|
|
networks:
|
|
- romm_default
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
romm_default:
|
|
external: true
|