diff --git a/lsio/emulatorjs/docker-compose.yaml b/lsio/emulatorjs/docker-compose.yaml new file mode 100644 index 0000000..981ac9c --- /dev/null +++ b/lsio/emulatorjs/docker-compose.yaml @@ -0,0 +1,30 @@ +# [Emulatorjs](https://github.com/linuxserver/emulatorjs) - A fork of NeptunJS +# used to run multiple web based emulators for retro games. This projects adds a +# management layer for adding roms and artwork to make it self hosted. + +--- +version: "2.1" +services: + emulatorjs: + image: ghcr.io/linuxserver/emulatorjs + container_name: emulatorjs + environment: + # for GroupID + - PUID=${PUID:-1024} + # for UserID + - PGID=${PGID:-100} + # Specify a timezone to use for example Europe/Amsterdam + - TZ=${TZ:-Europe/Amsterdam} + # Specify a subfolder for reverse proxies IE '/FOLDER/' + - SUBFOLDER=/ # optional + volumes: + # Path to store roms/artwork + - ${BASEDIR:-/volume1/docker}/emulatorjs/data:/data + ports: + # Rom/artwork management interface, used to generate/manage config files and download artwork + - 3000:3000 + # Emulation frontend containing static web files used to browse and launch games + - 80:80 + # IPFS peering port, if you want to participate in the P2P network to distribute frontend artwork please forward this to the Internet + - 4001:4001 # optional + restart: unless-stopped diff --git a/lsio/emulatorjs/docker-run.sh b/lsio/emulatorjs/docker-run.sh new file mode 100644 index 0000000..427d77f --- /dev/null +++ b/lsio/emulatorjs/docker-run.sh @@ -0,0 +1,17 @@ +# [Emulatorjs](https://github.com/linuxserver/emulatorjs) - A fork of NeptunJS +# used to run multiple web based emulators for retro games. This projects adds a +# management layer for adding roms and artwork to make it self hosted. + +source ./.env +docker run -d \ + --name=emulatorjs \ + -e PUID=${PUID:-1024} `# for GroupID` \ + -e PGID=${PGID:-100} `# for UserID` \ + -e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \ + -e SUBFOLDER=/ `# optional` `# Specify a subfolder for reverse proxies IE '/FOLDER/'` \ + -p 3000:3000 `# Rom/artwork management interface, used to generate/manage config files and download artwork` \ + -p 80:80 `# Emulation frontend containing static web files used to browse and launch games` \ + -p 4001:4001 `# optional` `# IPFS peering port, if you want to participate in the P2P network to distribute frontend artwork please forward this to the Internet` \ + -v ${BASEDIR:-/volume1/docker}/emulatorjs/data:/data `# Path to store roms/artwork` \ + --restart unless-stopped \ + ghcr.io/linuxserver/emulatorjs diff --git a/lsio/emulatorjs/run-once.sh b/lsio/emulatorjs/run-once.sh new file mode 100644 index 0000000..61f1736 --- /dev/null +++ b/lsio/emulatorjs/run-once.sh @@ -0,0 +1,3 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/emulatorjs/data