update dockerfile

This commit is contained in:
2025-03-23 15:44:09 +00:00
parent 59de4f5377
commit eeb0d872d5

View File

@@ -1,71 +1,71 @@
services:
# ollama:
# container_name: ollama
# image: "ollama/ollama"
# restart: unless-stopped
# environment:
# OLLAMA_MAX_QUEUE: 16
# OLLAMA_KEEP_ALIVE: 30
ollama:
container_name: ollama
image: "ollama/ollama"
restart: unless-stopped
environment:
OLLAMA_MAX_QUEUE: 16
OLLAMA_KEEP_ALIVE: 30
# ports:
# - 11434:11434
# volumes:
# - ollama:/root/.ollama
# networks:
# - default
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
ports:
- 11434:11434
volumes:
- ollama:/root/.ollama
networks:
- default
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# wireguard:
# image: lscr.io/linuxserver/wireguard:latest
# container_name: wireguard
# restart: unless-stopped
# cap_add:
# - NET_ADMIN
# - SYS_MODULE #optional
# environment:
# - PUID=1000
# - PGID=1000
# - TZ=Etc/UTC
# - SERVERURL=vpn-hinterwaldner.duckdns.org
# - SERVERPORT=51821 #optional
# - PEERS=raspi #optional
# - PEERDNS=auto #optional
# #- INTERNAL_SUBNET=10.13.13.0 #optional
# #- ALLOWEDIPS=0.0.0.0/0 #optional
# #- PERSISTENTKEEPALIVE_PEERS= #optional
# #- LOG_CONFS=true #optional
# volumes:
# - wireguard:/config
# #- /lib/modules:/lib/modules #optional
# ports:
# - 51821:51820/udp
# sysctls:
# - net.ipv4.conf.all.src_valid_mark=1
# networks:
# - default
# webui:
# container_name: webui
# build:
# context: ../auracaster-webui
# dockerfile: Dockerfile
# ssh:
# - default=~/.ssh/id_ed25519 #lappi
# ports:
# - "8501:8501"
# environment:
# - PYTHONUNBUFFERED=1
# # Change this URL if the translator service is running on a different host
# - TRANSLATOR_API_URL=http://auracast-translator:7999
# restart: unless-stopped
wireguard:
image: lscr.io/linuxserver/wireguard:latest
container_name: wireguard
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE #optional
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- SERVERURL=vpn-hinterwaldner.duckdns.org
- SERVERPORT=51821 #optional
- PEERS=raspi #optional
- PEERDNS=auto #optional
#- INTERNAL_SUBNET=10.13.13.0 #optional
#- ALLOWEDIPS=0.0.0.0/0 #optional
#- PERSISTENTKEEPALIVE_PEERS= #optional
#- LOG_CONFS=true #optional
volumes:
- wireguard:/config
#- /lib/modules:/lib/modules #optional
ports:
- 51821:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
networks:
- default
webui:
container_name: webui
build:
context: ../auracaster-webui
dockerfile: Dockerfile
ssh:
- default=~/.ssh/id_ed25519 #lappi
restart: unless-stopped
ports:
- "8501:8501"
environment:
- PYTHONUNBUFFERED=1
# Change this URL if the translator service is running on a different host
- TRANSLATOR_API_URL=http://auracast-translator:7999
networks:
- default
auracast-translator:
build:
@@ -78,7 +78,8 @@ services:
- "7999:7999"
environment:
- PYTHONUNBUFFERED=1
#command: /bin/bash # TODO: investigate whats going on inside container
networks:
- default
deploy: # for tts on gpu
resources:
@@ -88,7 +89,6 @@ services:
count: 1
capabilities: [gpu]
volumes:
ollama: {}
ollama:
wireguard: