mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Use dockerhub instead of ghcr
This commit is contained in:
parent
a56af56009
commit
875c6eaa5e
9
.github/workflows/docker.yml
vendored
9
.github/workflows/docker.yml
vendored
@ -15,10 +15,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- context: ./back
|
- context: ./back
|
||||||
label: back
|
label: back
|
||||||
image: ghcr.io/${{github.repository_owner}}/kyoo_back
|
image: zoriya/kyoo_back
|
||||||
- context: ./front
|
- context: ./front
|
||||||
label: front
|
label: front
|
||||||
image: ghcr.io/${{github.repository_owner}}/kyoo_front
|
image: zoriya/kyoo_front
|
||||||
name: Build ${{matrix.label}}
|
name: Build ${{matrix.label}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -50,9 +50,8 @@ jobs:
|
|||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
username: ${{github.repository_owner}}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
password: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
|
55
docker-compose.prod.yml
Normal file
55
docker-compose.prod.yml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
back:
|
||||||
|
image: zoryia/kyoo_back:edge
|
||||||
|
restart: on-failure
|
||||||
|
environment:
|
||||||
|
- KYOO_DATADIR=/var/lib/kyoo
|
||||||
|
- DATABASE__ENABLED=postgres
|
||||||
|
- DATABASE__CONFIGURATIONS__POSTGRES__SERVER=postgres
|
||||||
|
- DATABASE__CONFIGURATIONS__POSTGRES__USER=${POSTGRES_USER}
|
||||||
|
- DATABASE__CONFIGURATIONS__POSTGRES__PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
- DATABASE__CONFIGURATIONS__POSTGRES__DATABASE=${POSTGRES_DB}
|
||||||
|
- TVDB__APIKEY=${TVDB__APIKEY}
|
||||||
|
- THEMOVIEDB__APIKEY=${THEMOVIEDB__APIKEY}
|
||||||
|
- LIBRARY_ROOT=/video
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
volumes:
|
||||||
|
- kyoo:/var/lib/kyoo
|
||||||
|
- ./cache:/var/lib/kyoo/cached
|
||||||
|
- ./video:/video
|
||||||
|
front:
|
||||||
|
image: zoriya/kyoo_front:edge
|
||||||
|
restart: on-failure
|
||||||
|
environment:
|
||||||
|
- KYOO_URL=${KYOO_URL:-http://back:5000}
|
||||||
|
- PUBLIC_BACK_URL=${PUBLIC_BACK_URL}
|
||||||
|
ingress:
|
||||||
|
image: nginx
|
||||||
|
restart: on-failure
|
||||||
|
environment:
|
||||||
|
- PORT=8901
|
||||||
|
- FRONT_URL=http://front:8901
|
||||||
|
- BACK_URL=${KYOO_URL:-http://back:5000}
|
||||||
|
volumes:
|
||||||
|
- ./nginx.conf.template:/etc/nginx/templates/kyoo.conf.template:ro
|
||||||
|
depends_on:
|
||||||
|
- back
|
||||||
|
- front
|
||||||
|
ports:
|
||||||
|
- "8901:8901"
|
||||||
|
postgres:
|
||||||
|
image: postgres
|
||||||
|
restart: on-failure
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
kyoo:
|
||||||
|
db:
|
Loading…
x
Reference in New Issue
Block a user