Skip to content

Commit 5cf7c12

Browse files
committed
docker: make API ports public to expose them in container without config change
1 parent e5271a0 commit 5cf7c12

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ RUN apt update && \
2121
WORKDIR /root/.grin/main
2222
RUN grin server config
2323
RUN sed -i '/^run_tui /s/=.*$/= false/' grin-server.toml
24+
RUN sed -i '/^api_http_addr /s/=.*$/= "0.0.0.0:3413"/' grin-server.toml
2425

2526
# Create testnet config
2627
WORKDIR /root/.grin/test
2728
RUN grin --testnet server config
2829
RUN sed -i '/^run_tui /s/=.*$/= false/' grin-server.toml
30+
RUN sed -i '/^api_http_addr /s/=.*$/= "0.0.0.0:13413"/' grin-server.toml
2931

3032
# Mainnet ports
3133
EXPOSE 3413 3414

0 commit comments

Comments
 (0)