Skip to content

Commit

Permalink
whisper 8000
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Oct 3, 2024
1 parent 25520c2 commit b191924
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions second-brain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- /home/admin/vol:/vol
ports:
- 8000:8000
- 8800:8800
labels:
- "traefik.enable=true"
- "traefik.http.routers.elements.rule=Host(`app.${HOST}`)"
- "traefik.http.services.elements.loadbalancer.server.port=8000"
- "traefik.http.services.elements.loadbalancer.server.port=8800"
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
Expand All @@ -68,7 +68,7 @@ services:
- DOCKER_RUN=true # client use sphinx-swarm network
- NETWORK=bitcoin
- ROCKET_ADDRESS=0.0.0.0
- ROCKET_PORT=8000
- ROCKET_PORT=8800
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_REGION=$AWS_REGION
Expand Down
6 changes: 3 additions & 3 deletions src/images/whisper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ fn whisper(img: &WhisperImage) -> Result<Config<String>> {
..Default::default()
};
// override the nginix port 8000 -> 8585:8000
let inner_port = "8000";
c.host_config.as_mut().unwrap().port_bindings = single_host_port_from(&img.port, inner_port);
// let inner_port = "8000";
// c.host_config.as_mut().unwrap().port_bindings = single_host_port_from(&img.port, inner_port);
if let Some(host) = &img.host {
c.labels = Some(traefik_labels(&img.name, &host, inner_port, false))
c.labels = Some(traefik_labels(&img.name, &host, &img.port, false))
}
Ok(c)
}
Expand Down
4 changes: 3 additions & 1 deletion stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ if [ $1 == "btc" ] || \
[ $1 == "swarm" ] || \
[ $1 == "bot" ] || \
[ $1 == "builtin" ] || \
[ $1 == "llama" ]
[ $1 == "llama" ] || \
[ $1 == "whisper" ] || \
[ $1 == "whisker" ]

then
echo "=> stop $1.sphinx"
Expand Down

0 comments on commit b191924

Please sign in to comment.