diff --git a/second-brain.yml b/second-brain.yml index ad4d9af4..e3eb217b 100644 --- a/second-brain.yml +++ b/second-brain.yml @@ -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" @@ -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 diff --git a/src/images/whisper.rs b/src/images/whisper.rs index 48d7dfa3..1ddca4dc 100644 --- a/src/images/whisper.rs +++ b/src/images/whisper.rs @@ -102,10 +102,10 @@ fn whisper(img: &WhisperImage) -> Result> { ..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) } diff --git a/stop.sh b/stop.sh index e1aff6eb..93a0f801 100755 --- a/stop.sh +++ b/stop.sh @@ -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"