diff --git a/.docker/supervisord.ini b/.docker/supervisord.ini index 1fc52e7..43b9e9d 100644 --- a/.docker/supervisord.ini +++ b/.docker/supervisord.ini @@ -16,7 +16,7 @@ stderr_logfile=/dev/stdout stderr_logfile_maxbytes=0 [program:laravelmagick] -command = su -c "php artisan sriptv:init" nobody -s /bin/sh +command = su -c "php artisan sriptv:init" nobody -s /bin/sh startsecs = 0 autorestart = false startretries = 1 diff --git a/Dockerfile b/Dockerfile index f273f92..3c826ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,9 +32,6 @@ RUN apk add --no-cache php8 \ php8-tokenizer \ php8-pecl-redis - -RUN ln -s /usr/bin/php8 /usr/bin/php - COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer RUN mkdir -p /etc/supervisor.d/ diff --git a/README.md b/README.md index a26cfd9..bd32ab3 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,34 @@ # OpenSource IPTV +copy `.env.example` to `.env` and edit to your environment and edit by your needs. +Set permissions of `.env` via `chmod 777 .env` . -copy .env.example to .env and edit to your environment and edit by your needs - -``` +```shell composer install --no-dev php artisan sriptv:init php artisan serve ``` -## Docker +## Docker -build: +build the sr-admin-gui image -``` +```shell docker build . -t sr-admin-gui ``` run: -``` -docker run -it -p 8080:80 -v data:/data -v "$(pwd)"/.env:/var/www/html/.env:z sr-admin-gui +```shell +docker run -it -p 8080:80 -v data:/data -v "$(pwd)"/.env:/var/www/html/.env sr-admin-gui ``` or, if you want to get pre-built package, please use: -``` +```shell docker pull ghcr.io/streamingriver/sr-admin-gui:latest ``` + +## Access + +[Gui](http://localhost:8080/) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..51dd5dd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: '3.7' + +services: + nginx: + build: . + volumes: + - .env:/var/www/html/.env + - data:/data + ports: + - '8080:80' + working_dir: /var/www/html +volumes: + data: