Add Proxmox LXC deployment branch
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
.git
|
|
||||||
__pycache__
|
|
||||||
server.log
|
|
||||||
*.pyc
|
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
FROM python:3.13-slim
|
|
||||||
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends ffmpeg \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
COPY server.py index.html README.md ./
|
|
||||||
|
|
||||||
ENV C41_SOURCE=/data/source \
|
|
||||||
C41_OUTPUT=/data/encoded \
|
|
||||||
C41_HOST=0.0.0.0 \
|
|
||||||
C41_PORT=8765
|
|
||||||
|
|
||||||
EXPOSE 8765
|
|
||||||
VOLUME ["/data/source", "/data/encoded"]
|
|
||||||
|
|
||||||
CMD ["python3", "server.py"]
|
|
||||||
@@ -32,26 +32,6 @@ python3 server.py
|
|||||||
|
|
||||||
Open <http://127.0.0.1:8765> in a browser.
|
Open <http://127.0.0.1:8765> in a browser.
|
||||||
|
|
||||||
## Docker
|
|
||||||
|
|
||||||
Docker keeps the application and FFmpeg inside a container while the recorder
|
|
||||||
files remain on the host. From this directory, run:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
docker compose up -d --build
|
|
||||||
```
|
|
||||||
|
|
||||||
Open <http://127.0.0.1:8765>. The Compose configuration mounts the original
|
|
||||||
archive read-only at `/data/source` and stores encoded files persistently in
|
|
||||||
`/data/encoded`. Stop it with:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
docker compose down
|
|
||||||
```
|
|
||||||
|
|
||||||
To use different host folders, edit the two `volumes` entries in
|
|
||||||
`compose.yaml`. Do not remove `:ro` from the source mount.
|
|
||||||
|
|
||||||
## LXC
|
## LXC
|
||||||
|
|
||||||
An unprivileged LXC works without Docker. Install Python and FFmpeg inside the
|
An unprivileged LXC works without Docker. Install Python and FFmpeg inside the
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
services:
|
|
||||||
c41-player:
|
|
||||||
build: .
|
|
||||||
container_name: c41-player
|
|
||||||
environment:
|
|
||||||
C41_HOST: 0.0.0.0
|
|
||||||
ports:
|
|
||||||
- "8765:8765"
|
|
||||||
volumes:
|
|
||||||
- "/home/human/Videos/Yassine Salon/C41/media:/data/source:ro"
|
|
||||||
- "/home/human/Videos/Yassine Salon/C41/media-mp4:/data/encoded"
|
|
||||||
restart: unless-stopped
|
|
||||||
Reference in New Issue
Block a user