This commit is contained in:
Colin 2024-05-15 10:25:32 -04:00
parent 5c9efd0c63
commit 5b26be988b
8 changed files with 33 additions and 40 deletions

View File

@ -1,6 +1,6 @@
services:
whisper:
stirling:
build:
context: ./docker/whisper/
context: ./docker/stirling/
dockerfile: Dockerfile.production
image: git.nixc.us/nixius/whisper:production
image: git.nixc.us/nixius/stirling:production

View File

@ -1,6 +1,6 @@
services:
whisper:
stirling:
build:
context: ./docker/whisper/
context: ./docker/stirling/
dockerfile: Dockerfile
image: git.nixc.us/nixius/whisper:staging
image: git.nixc.us/nixius/stirling:staging

View File

@ -0,0 +1,6 @@
FROM frooodle/s-pdf:latest
EXPOSE 8080
ENV DOCKER_ENABLE_SECURITY=false
ENV INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
ENV LANGS=en_US

View File

@ -0,0 +1 @@
FROM git.nixc.us/nixius/stirling:staging

View File

@ -1,18 +0,0 @@
# Use an official Node runtime as a parent image
FROM node:20-alpine
# Set the working directory
WORKDIR /usr/src/app
# Clone the repo
RUN apk --no-cache add git \
&& git clone https://github.com/xenova/whisper-web.git .
# Install dependencies
RUN npm install
# Expose the port the app runs on
EXPOSE 5173
# Command to run the app
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]

View File

@ -1 +0,0 @@
FROM git.nixc.us/nixius/whisper:staging

View File

@ -4,29 +4,34 @@ networks:
default:
driver: overlay
services:
whisper:
image: git.nixc.us/nixius/whisper:production
stirling:
image: git.nixc.us/nixius/stirling:production
networks:
- traefik
volumes:
- /mnt/tank/persist/nixc.us/stirling/production/trainingData:/usr/share/tessdata #Required for extra OCR languages
- /mnt/tank/persist/nixc.us/stirling/production/extraConfigs:/configs
- /mnt/tank/persist/nixc.us/stirling/production/customFiles:/customFiles/
- /mnt/tank/persist/nixc.us/stirling/production/logs:/logs/
deploy:
placement:
constraints:
- node.hostname == macmini14
labels:
homepage.group: apps
homepage.name: whisper
homepage.href: https://whisper.nixc.us/
homepage.description: whisper
homepage.name: stirling
homepage.href: https://stirling.nixc.us/
homepage.description: stirling
traefik.enable: "true"
traefik.http.routers.production-whisper_whisper.rule: "Host(`whisper.nixc.us`)"
traefik.http.routers.production-whisper_whisper.entrypoints: "websecure"
traefik.http.routers.production-whisper_whisper.tls: "true"
traefik.http.routers.production-whisper_whisper.tls.certresolver: "letsencryptresolver"
traefik.http.routers.production-whisper_whisper.service: "production-whisper_whisper"
traefik.http.services.production-whisper_whisper.loadbalancer.server.port: "5173"
traefik.http.routers.production-stirling_stirling.rule: "Host(`stirling.nixc.us`)"
traefik.http.routers.production-stirling_stirling.entrypoints: "websecure"
traefik.http.routers.production-stirling_stirling.tls: "true"
traefik.http.routers.production-stirling_stirling.tls.certresolver: "letsencryptresolver"
traefik.http.routers.production-stirling_stirling.service: "production-stirling_stirling"
traefik.http.services.production-stirling_stirling.loadbalancer.server.port: "8080"
traefik.docker.network: "traefik"
# traefik.http.routers.production_whisper.middlewares: 'authelia_authelia@docker'
traefik.http.routers.production-whisper_whisper.middlewares: 'authelia_authelia@docker'
# traefik.http.routers.production_stirling.middlewares: 'authelia_authelia@docker'
traefik.http.routers.production-stirling_stirling.middlewares: 'authelia_authelia@docker'
update_config:
order: stop-first
failure_action: rollback

View File

@ -2,8 +2,8 @@ networks:
traefik:
external: true
services:
whisper:
image: git.nixc.us/nixius/whisper:staging
stirling:
image: git.nixc.us/nixius/stirling:staging
networks:
- traefik
deploy: