jordancaraballo commited on
Commit
0ba752d
1 Parent(s): 6621390

Adding bidirectional and port access

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -2
  2. pages/1_⚡_Alaska_Lightning.py +2 -1
Dockerfile CHANGED
@@ -34,8 +34,9 @@ RUN pip install jupyter-server-proxy
34
 
35
  ENV JUPYTER_ENABLE_LAB=yes
36
 
37
- #ARG LOCALTILESERVER_CLIENT_PREFIX='proxy/{port}'
38
- #ENV LOCALTILESERVER_CLIENT_PREFIX=$LOCALTILESERVER_CLIENT_PREFIX
 
39
  ENV LOCALTILESERVER_CLIENT_PORT=8501
40
 
41
  EXPOSE 8501
 
34
 
35
  ENV JUPYTER_ENABLE_LAB=yes
36
 
37
+ ENV LOCALTILESERVER_CLIENT_HOST=127.0.0.1
38
+ ARG LOCALTILESERVER_CLIENT_PREFIX='proxy/{port}'
39
+ ENV LOCALTILESERVER_CLIENT_PREFIX=$LOCALTILESERVER_CLIENT_PREFIX
40
  ENV LOCALTILESERVER_CLIENT_PORT=8501
41
 
42
  EXPOSE 8501
pages/1_⚡_Alaska_Lightning.py CHANGED
@@ -85,7 +85,8 @@ with col1:
85
  colormap='jet',
86
  layer_name=Path(current_forecast_date).stem,
87
  client_port=8501,
88
- port=8080
 
89
  )
90
 
91
  # folium does not support this
 
85
  colormap='jet',
86
  layer_name=Path(current_forecast_date).stem,
87
  client_port=8501,
88
+ port=8080,
89
+ debug=True
90
  )
91
 
92
  # folium does not support this