update docker compose and readme
This commit is contained in:
@@ -31,25 +31,56 @@ services:
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Etc/UTC
|
||||
- SERVERURL=vpn-hinterwaldner.duckdns.org
|
||||
- TZ=Europe/Vienna
|
||||
- SERVERURL=vpn.pstruebi.xyz
|
||||
- SERVERPORT=51821 #optional
|
||||
- PEERS=raspi #optional
|
||||
- PEERS=11 #optional
|
||||
- PEERDNS=auto #optional
|
||||
- PERSISTENTKEEPALIVE_PEERS=all
|
||||
- ALLOWEDIPS=0.0.0.0/0 #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
|
||||
- ./wg_conf:/config
|
||||
#- wireguard:/config
|
||||
#- /lib/modules:/lib/modules #optional
|
||||
ports:
|
||||
- 51821:51820/udp
|
||||
- "7999:7999" #auracast-translator
|
||||
sysctls:
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
networks:
|
||||
- default
|
||||
|
||||
|
||||
# needs time for first boot since xtts model is downloaded
|
||||
auracast-translator:
|
||||
container_name: auracast-translator
|
||||
build:
|
||||
context: ../auracast-translator
|
||||
dockerfile: Dockerfile
|
||||
ssh:
|
||||
- default=~/.ssh/id_ed25519 #lappi
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- wireguard
|
||||
network_mode: service:wireguard # not sure if this is the best way
|
||||
#ports:
|
||||
# - "7999:7999" #auracast-translator
|
||||
#networks:
|
||||
# - default
|
||||
environment:
|
||||
- LOG_LEVEL=INFO
|
||||
- PYTHONUNBUFFERED=1
|
||||
|
||||
deploy: # for tts on gpu
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
|
||||
webui:
|
||||
container_name: webui
|
||||
build:
|
||||
@@ -63,33 +94,10 @@ services:
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
# Change this URL if the translator service is running on a different host
|
||||
- TRANSLATOR_API_BASE_URL=http://auracast-translator:7999
|
||||
- TRANSLATOR_API_BASE_URL=http://wireguard:7999 # http://auracast-translator:7999
|
||||
networks:
|
||||
- default
|
||||
|
||||
# needs time for first boot since xtts model is downloaded
|
||||
auracast-translator:
|
||||
build:
|
||||
context: ../auracast-translator
|
||||
dockerfile: Dockerfile
|
||||
ssh:
|
||||
- default=~/.ssh/id_ed25519 #lappi
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "7999:7999"
|
||||
environment:
|
||||
- LOG_LEVEL=INFO
|
||||
- PYTHONUNBUFFERED=1
|
||||
networks:
|
||||
- default
|
||||
|
||||
deploy: # for tts on gpu
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
|
||||
volumes:
|
||||
ollama:
|
||||
|
||||
Reference in New Issue
Block a user