diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..eca205b --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,45 @@ +name: Docker Build + +on: + push: + branches: [ "main" ] + paths-ignore: + - 'README.md' + - '.gitignore' + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: type=raw,value=latest + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/docker-compose.yml b/docker-compose.yml index ff9eaea..c8188ca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,17 @@ services: ta-organizer: - build: /mnt/user/appdata/dockerbuildings + # build: . <-- Uncomment to build locally + image: ghcr.io/salpertio/ta-organizerr:latest container_name: ta-organizer volumes: - - /mnt/user/appdata/dockerbuildings/source:/app/source - - /mnt/user/appdata/dockerbuildings/target:/app/target - - /mnt/user/appdata/dockerbuildings/data:/app/data + - /path/to/your/source:/app/source + - /path/to/your/target:/app/target + - /path/to/your/data:/app/data ports: - "8002:5000" environment: - SCAN_INTERVAL=60 - ALLOWED_IPS=127.0.0.1,192.168.1.0/24,10.0.0.0/8,172.16.0.0/12 - env_file: /mnt/user/appdata/dockerbuildings/.env + # - UI_USERNAME=admin + # - UI_PASSWORD=password + # env_file: .env diff --git a/templates/dashboard.html b/templates/dashboard.html index 75e0db9..216d6e3 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -8,82 +8,113 @@ -
-
-

TA Organizerr

-
- - Transcode - +
+
+
+

TA Organizer

Connecting...
+
-
+
-
-
Total Videos
-
-

0

+
+
+
Total Videos
+

0

-
-
Linked & Verified
-
-

0

+
+
+
Linked & Verified
+

0

-
-
New / Fixed
-
-

0

+
+
+
New / Fixed
+

0

-
-
Missing / Error
-
-

0

+
+
+
Missing / Error
+

0

@@ -91,34 +122,41 @@
-
+
-
Control Panel
-
- + + + + + +
+ Auto-scan timer +

-- min

+
+
-
+
-
- Live Logs - +
+ Live Logs +
-
+
-
Waiting for logs...
+
Waiting for system logs...