diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3f22061 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +/data +/AgentDVR \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..f8058d3 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# YoinkDVR + +Proxy for AgentDVR to get a "valid" license. + +> Note: This is **not** a business license. It is literally just so that AgentDVR will shut up about the license being +> weird. + +## Setup + +1. Generate a self-signed certificate for `www.ispyconnect.com` and place it in the `ssl` directory. (I recommend + using [step](https://smallstep.com/docs/step-cli/installation/)) + ```shell + step certificate create ssl data/ssl.crt data/ssl.key \ + --profile self-signed --subtle \ + --san www.ispyconnect.com + ``` +2. Add the SSL certificate to your host's trusted root certificates. + ```shell + sudo cp data/ssl.crt /usr/local/share/ca-certificates/yoinkdvr.crt + sudo update-ca-certificates + ``` +3. Run both containers: + ```shell + docker-compose up -d + ``` diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..5264cb1 --- /dev/null +++ b/compose.yml @@ -0,0 +1,29 @@ +version: '3' + +services: + yoinkdvr: + build: . + restart: unless-stopped + volumes: + - ./data:/data + + agentdvr: + image: mekayelanik/ispyagentdvr:latest + restart: unless-stopped + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Berlin + ports: + - 8090:8090 + - 3478:3478/udp + - 50000-50010:50000-50010/udp + volumes: + - ./AgentDVR/config/:/AgentDVR/Media/XML/ + - ./AgentDVR/media/:/AgentDVR/Media/WebServerRoot/Media/ + - ./AgentDVR/commands:/AgentDVR/Commands/ + - /etc/ssl:/etc/ssl:ro + depends_on: + - yoinkdvr + links: + - yoinkdvr:www.ispyconnect.com \ No newline at end of file