Merge pull request #345 from CosmWasm/simapp-start
Start simapp's in-process API
This commit is contained in:
commit
bdf0015072
@ -4,6 +4,8 @@ command -v shellcheck > /dev/null && shellcheck "$0"
|
||||
|
||||
TENDERMINT_PORT_GUEST="26657"
|
||||
TENDERMINT_PORT_HOST="26657"
|
||||
API_PORT_GUEST="1317"
|
||||
API_PORT_HOST="1318"
|
||||
|
||||
SCRIPT_DIR="$(realpath "$(dirname "$0")")"
|
||||
# shellcheck source=./env
|
||||
@ -21,6 +23,7 @@ docker volume rm -f simapp_data
|
||||
docker run --rm \
|
||||
--name "$CONTAINER_NAME" \
|
||||
-p "$TENDERMINT_PORT_HOST":"$TENDERMINT_PORT_GUEST" \
|
||||
-p "$API_PORT_HOST":"$API_PORT_GUEST" \
|
||||
--mount type=bind,source="$SCRIPT_DIR/template",target=/template \
|
||||
--mount type=volume,source=simapp_data,target=/root \
|
||||
"$REPOSITORY:$VERSION" \
|
||||
|
||||
@ -78,7 +78,7 @@ global-labels = [
|
||||
[api]
|
||||
|
||||
# Enable defines if the API server should be enabled.
|
||||
enable = false
|
||||
enable = true
|
||||
|
||||
# Swagger defines if swagger documentation should automatically be registered.
|
||||
swagger = false
|
||||
@ -99,4 +99,4 @@ rpc-write-timeout = 0
|
||||
rpc-max-body-bytes = 1000000
|
||||
|
||||
# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk)
|
||||
enabled-unsafe-cors = false
|
||||
enabled-unsafe-cors = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user