chore: Add jellyfin_app service to traefik.yml and production.yml

This commit is contained in:
2024-05-05 19:16:03 +08:00
parent da82c84405
commit 53e9378516
4 changed files with 87 additions and 47 deletions
+15
View File
@@ -139,6 +139,17 @@ http:
tls:
certResolver: letsencrypt
jellyfin-router:
rule: "Host(`media.furyhawk.lol`)"
entryPoints:
- auth
- web-secure
middlewares:
- csrf
service: jellyfin_app
tls:
certResolver: letsencrypt
forum-router:
rule: "Host(`forum.furyhawk.lol`)"
entryPoints:
@@ -422,6 +433,10 @@ http:
loadBalancer:
servers:
- url: http://kestra:8080
jellyfin_app:
loadBalancer:
servers:
- url: http://jellyfin:8096
forum_server:
loadBalancer:
servers:
+2
View File
@@ -0,0 +1,2 @@
*
!.gitignore
+2
View File
@@ -0,0 +1,2 @@
*
!.gitignore
+68 -47
View File
@@ -58,53 +58,6 @@ services:
- net
- default
kestra:
image: kestra/kestra:latest-full
container_name: kestra
pull_policy: always
# Note that this is meant for development only. Refer to the documentation for production deployments of Kestra which runs without a root user.
user: "root"
command: server standalone --worker-thread=128
environment:
KESTRA_CONFIGURATION: |
datasources:
postgres:
url: jdbc:postgresql://postgres:5432/kestra
driverClassName: org.postgresql.Driver
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
kestra:
server:
basic-auth:
enabled: true
username: ${EMAIL_FROM} # it must be a valid email address
password: ${EMAIL_PASSWORD}
repository:
type: postgres
storage:
type: local
local:
base-path: "/app/storage"
queue:
type: postgres
tasks:
tmp-dir:
path: /tmp/kestra-wd/tmp
url: http://kestra.furyhawk.lol/
volumes:
- ./kestra-data:/app/storage
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/kestra-wd:/tmp/kestra-wd
expose:
- "8080"
- "8081"
networks:
- net
- default
depends_on:
postgres:
condition: service_started
osrm-backend:
environment:
# OSRM manager setup
@@ -199,6 +152,74 @@ services:
- net
- default
kestra:
image: kestra/kestra:latest-full
container_name: kestra
pull_policy: always
# Note that this is meant for development only. Refer to the documentation for production deployments of Kestra which runs without a root user.
user: "root"
command: server standalone --worker-thread=128
environment:
KESTRA_CONFIGURATION: |
datasources:
postgres:
url: jdbc:postgresql://postgres:5432/kestra
driverClassName: org.postgresql.Driver
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
kestra:
server:
basic-auth:
enabled: true
username: ${EMAIL_FROM} # it must be a valid email address
password: ${EMAIL_PASSWORD}
repository:
type: postgres
storage:
type: local
local:
base-path: "/app/storage"
queue:
type: postgres
tasks:
tmp-dir:
path: /tmp/kestra-wd/tmp
url: http://kestra.furyhawk.lol/
volumes:
- ./kestra-data:/app/storage
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/kestra-wd:/tmp/kestra-wd
expose:
- "8080"
- "8081"
networks:
- net
- default
depends_on:
postgres:
condition: service_started
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
volumes:
- ./jellyfin-config:/config
- ./jellyfin-cache:/cache
- type: bind
source: ~/media
target: /media
read_only: true
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=https://media.furyhawk.lol
expose:
- 8096
networks:
- net
- default
privatebin:
image: privatebin/nginx-fpm-alpine:latest
container_name: privatebin