bind RPC port to localhost from container

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-03-23 19:26:02 +01:00
parent eadc21641f
commit 2923405a9d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 3 additions and 2 deletions

View File

@ -16,8 +16,8 @@ beacon_node_public_address: '{{ ansible_host }}'
# metrics # metrics
beacon_node_metrics_port: 9200 beacon_node_metrics_port: 9200
# rpc # rpc / administrative
beacon_node_rpc_port: 9300 beacon_node_rpc_port: 9900
# general container management # general container management
compose_state: 'present' compose_state: 'present'

View File

@ -16,6 +16,7 @@
image: '{{ beacon_node_cont_image }}' image: '{{ beacon_node_cont_image }}'
restart: 'always' restart: 'always'
ports: ports:
- '127.0.0.1:{{ beacon_node_rpc_port }}:{{ beacon_node_rpc_port }}/tcp'
- '{{ beacon_node_metrics_port }}:{{ beacon_node_metrics_port }}/tcp' - '{{ beacon_node_metrics_port }}:{{ beacon_node_metrics_port }}/tcp'
- '{{ beacon_node_listening_port }}:{{ beacon_node_listening_port }}/tcp' - '{{ beacon_node_listening_port }}:{{ beacon_node_listening_port }}/tcp'
- '{{ beacon_node_discovery_port }}:{{ beacon_node_discovery_port }}/udp' - '{{ beacon_node_discovery_port }}:{{ beacon_node_discovery_port }}/udp'