From 0f0d677a3f0e9d317cac5aded005f53fb776c75c Mon Sep 17 00:00:00 2001 From: KeiTachikawa Date: Sun, 8 Mar 2026 01:45:34 +0530 Subject: [PATCH 1/2] Aeres-u99 | Adding dockerfile + docker compose for the sync-player --- .dockerignore | 18 ++++++++++++++++++ Dockerfile | 16 ++++++++++++++++ README.md | 9 +++++++++ docker-compose.yaml | 9 +++++++++ 4 files changed, 52 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f1917fb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,18 @@ +node_modules +npm-debug.log +*.bat +*.sh +yarn-error.log +.git +.gitignore +Dockerfile +docker-compose.yml +.dockerignore +*.md +.env +config.env +coverage +dist +build +tmp +*.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..db7ec27 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:23-slim AS builder + +WORKDIR /app +COPY . . + +WORKDIR /app/res +RUN npm install + + +FROM node:23-slim + +WORKDIR /app/res + +COPY --from=builder /app/res /app/res + +CMD ["node","server.js"] diff --git a/README.md b/README.md index 5ed271c..a0ff54c 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ A FULLY synchronized non-coder friendly HTML5 video player originally for Minecr * [Method 1: Direct Hosting](#method-1-lan-or-public-ip-direct-hosting) * [Method 2: Tailscale](#method-2-tailscale-virtual-lan) * [Method 3: Cloud Hosting](#method-3-cloud-hosting-render-heroku-replit-etc) + * [Method 4: Docker Compose(#method-4-docker-compose)] * [Firewall Warning](#firewall-warning) * [File Structure](#-file-structure) * [Configuration](#️-configuration) @@ -131,6 +132,14 @@ There are also 2 chat commands called /fullscreen and /rename, they work as the 2. Run `run.bat` in your folder 3. Access the video player from devices at the provided links 4. Access admin panel at `http://your-ip:port/admin` and go to `http://your-ip:port` in minecraft + +### Method 4: Docker Compose + +1. `docker build . -t "sync-player:v1.10.6"` +2. `docker compose up -d` +3. For configurations please use the environment variables as in the docker compose example to override config.env + +TODO: Registry for the official Docker Image for arm, x64 arch --- ## Firewall Warning diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..e845f0d --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,9 @@ +services: + nodeapp: + image: sync-player:v1.10.6 + ports: + - "4000:4000" + env_file: + - config.env + environment: + SYNC_PORT: 4000 From fb10e2f1309a79a12f74e63582ba1692bc9a658d Mon Sep 17 00:00:00 2001 From: KeiTachikawa Date: Sun, 8 Mar 2026 01:50:52 +0530 Subject: [PATCH 2/2] Aeres-u99 | Fixing typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a0ff54c..a7caa73 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ A FULLY synchronized non-coder friendly HTML5 video player originally for Minecr * [Method 1: Direct Hosting](#method-1-lan-or-public-ip-direct-hosting) * [Method 2: Tailscale](#method-2-tailscale-virtual-lan) * [Method 3: Cloud Hosting](#method-3-cloud-hosting-render-heroku-replit-etc) - * [Method 4: Docker Compose(#method-4-docker-compose)] + * [Method 4: Docker Compose](#method-4-docker-compose) * [Firewall Warning](#firewall-warning) * [File Structure](#-file-structure) * [Configuration](#️-configuration)