bitcoin-s/app/server/server.sbt
Chris Stewart e24efd65ae
2022 01 12 docker ws (#3976)
* Add port 19999 to bitcoin-s-server exposed ports, Add port 19999 to documentation

* Get docker containers working correctly with websockets

Co-authored-by: Ivan <erickson.ivan@gmail.com>
2022-01-12 14:07:11 -06:00

24 lines
899 B
Scala

name := "bitcoin-s-server"
// Ensure actor system is shut down
// when server is quit
Compile / fork := true
libraryDependencies ++= Deps.server.value
mainClass := Some("org.bitcoins.server.BitcoinSServerMain")
packageSummary := "A Bitcoin neutrino node and wallet"
packageDescription := "Runs a Bitcoin neutrino node and wallet, has functionality " +
"for many different modes and configuration options, see more at https://bitcoin-s.org/docs/applications/server"
dockerExposedPorts ++= Seq(9999, 19999)
dockerEntrypoint := Seq("/opt/docker/bin/bitcoin-s-server")
//this passes in our default configuration for docker
//you can override this by passing in a custom configuration
//when the docker container is started by using bind mount
//https://docs.docker.com/storage/bind-mounts/#start-a-container-with-a-bind-mount
dockerCmd ++= Seq("--conf", "/opt/docker/docker-application.conf")