Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

try to get application running #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .docker/supervisord.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/)
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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: