Files
romm/docker-compose.yml
Georges-Antoine Assi b5cd86e3f7 fix(frontend): restate the player isolation URLs instead of reading nginx
The vite plugin parsed the COOP/COEP patterns out of the nginx template at
config load, but the Dockerfile's frontend-build stage copies frontend/
alone, so the config threw ENOENT and the image build failed.

Restate the two patterns in the plugin and let its test assert they still
match the template's map, which also drops the dev container mount that
existed only to feed that read.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 09:13:32 -04:00

64 lines
1.7 KiB
YAML

# Please see the full example under examples/docker-compose.example.yml
# Pinned so the default network stays romm_default whatever the checkout
# directory is named; docker-compose.oidc.yml and .streaming.yml join it.
name: romm
services:
romm-dev:
build:
context: .
dockerfile: Dockerfile
container_name: romm-dev
env_file: .env
environment:
- REDIS_HOST=romm-valkey-dev
- DB_HOST=${DB_HOST:-romm-db-dev}
- ROMM_BASE_PATH=/app/romm
ports:
- "3000:3000" # Vite dev server (custom)
- "5173:5173" # Vite dev server (default)
- "8443:8443" # HTTPS dev server
- "5678:5678" # debugpy
- "${DEV_PORT:-5000}:5000" # Backend API
volumes:
- ./backend:/app/backend
- /app/backend/romm_mock # Empty directory
- ./frontend:/app/frontend
- /app/frontend/node_modules # Empty directory
- /app/frontend/dist # Empty directory
- ./romm_mock:/app/romm
- ~/.vite-plugin-mkcert:/app/.vite-plugin-mkcert
depends_on:
- romm-db-dev
- romm-valkey-dev
command: /bin/bash -c "cd /app && bash"
stdin_open: true
tty: true
romm-db-dev:
image: mariadb:12.3.3
container_name: romm-db-dev
restart: unless-stopped
env_file: .env
environment:
- MARIADB_ROOT_PASSWORD=${DB_ROOT_PASSWD:-rootpassword}
- MARIADB_DATABASE=${DB_NAME:-romm}
- MARIADB_USER=${DB_USER:-romm}
- MARIADB_PASSWORD=${DB_PASSWD:-romm}
volumes:
- romm-db-dev:/var/lib/mysql
ports:
- "3306:3306"
romm-valkey-dev:
image: valkey/valkey:9.0.6
container_name: romm-valkey-dev
restart: unless-stopped
env_file: .env
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
romm-db-dev: