Stirling
This commit is contained in:
parent
5c9efd0c63
commit
5b26be988b
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
whisper:
|
stirling:
|
||||||
build:
|
build:
|
||||||
context: ./docker/whisper/
|
context: ./docker/stirling/
|
||||||
dockerfile: Dockerfile.production
|
dockerfile: Dockerfile.production
|
||||||
image: git.nixc.us/nixius/whisper:production
|
image: git.nixc.us/nixius/stirling:production
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
whisper:
|
stirling:
|
||||||
build:
|
build:
|
||||||
context: ./docker/whisper/
|
context: ./docker/stirling/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: git.nixc.us/nixius/whisper:staging
|
image: git.nixc.us/nixius/stirling:staging
|
||||||
|
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
FROM git.nixc.us/nixius/stirling:staging
|
|
@ -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"]
|
|
|
@ -1 +0,0 @@
|
||||||
FROM git.nixc.us/nixius/whisper:staging
|
|
|
@ -4,29 +4,34 @@ networks:
|
||||||
default:
|
default:
|
||||||
driver: overlay
|
driver: overlay
|
||||||
services:
|
services:
|
||||||
whisper:
|
stirling:
|
||||||
image: git.nixc.us/nixius/whisper:production
|
image: git.nixc.us/nixius/stirling:production
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- 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:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.hostname == macmini14
|
- node.hostname == macmini14
|
||||||
labels:
|
labels:
|
||||||
homepage.group: apps
|
homepage.group: apps
|
||||||
homepage.name: whisper
|
homepage.name: stirling
|
||||||
homepage.href: https://whisper.nixc.us/
|
homepage.href: https://stirling.nixc.us/
|
||||||
homepage.description: whisper
|
homepage.description: stirling
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
traefik.http.routers.production-whisper_whisper.rule: "Host(`whisper.nixc.us`)"
|
traefik.http.routers.production-stirling_stirling.rule: "Host(`stirling.nixc.us`)"
|
||||||
traefik.http.routers.production-whisper_whisper.entrypoints: "websecure"
|
traefik.http.routers.production-stirling_stirling.entrypoints: "websecure"
|
||||||
traefik.http.routers.production-whisper_whisper.tls: "true"
|
traefik.http.routers.production-stirling_stirling.tls: "true"
|
||||||
traefik.http.routers.production-whisper_whisper.tls.certresolver: "letsencryptresolver"
|
traefik.http.routers.production-stirling_stirling.tls.certresolver: "letsencryptresolver"
|
||||||
traefik.http.routers.production-whisper_whisper.service: "production-whisper_whisper"
|
traefik.http.routers.production-stirling_stirling.service: "production-stirling_stirling"
|
||||||
traefik.http.services.production-whisper_whisper.loadbalancer.server.port: "5173"
|
traefik.http.services.production-stirling_stirling.loadbalancer.server.port: "8080"
|
||||||
traefik.docker.network: "traefik"
|
traefik.docker.network: "traefik"
|
||||||
# traefik.http.routers.production_whisper.middlewares: 'authelia_authelia@docker'
|
# traefik.http.routers.production_stirling.middlewares: 'authelia_authelia@docker'
|
||||||
traefik.http.routers.production-whisper_whisper.middlewares: 'authelia_authelia@docker'
|
traefik.http.routers.production-stirling_stirling.middlewares: 'authelia_authelia@docker'
|
||||||
update_config:
|
update_config:
|
||||||
order: stop-first
|
order: stop-first
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
|
|
|
@ -2,8 +2,8 @@ networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
services:
|
services:
|
||||||
whisper:
|
stirling:
|
||||||
image: git.nixc.us/nixius/whisper:staging
|
image: git.nixc.us/nixius/stirling:staging
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
deploy:
|
deploy:
|
||||||
|
|
Loading…
Reference in New Issue