Docker grafana on PWD(Play With Docker) Not work

Hi,
i try play with docker and run this command

docker run \
  -d \
  -p 3000:3000 \
  --name=grafana \
  -e "GF_SERVER_ROOT_URL=http://<URL_PWD>" \
  -e "GF_SECURITY_ADMIN_PASSWORD=secret" \
  grafana/grafana

Log :
t=2019-01-12T07:49:39+0000 lvl=info msg=“Starting Grafana” logger=server version=5.4.2 commit=d812109 branch=HEAD compiled=2018-12-13T12:49:23+0000
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config loaded from” logger=settings file=/usr/share/grafana/conf/defaults.ini
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config loaded from” logger=settings file=/etc/grafana/grafana.ini
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.data=/var/lib/grafana”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.logs=/var/log/grafana”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.plugins=/var/lib/grafana/plugins”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.provisioning=/etc/grafana/provisioning”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.log.mode=console”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_DATA=/var/lib/grafana”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_LOGS=/var/log/grafana”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_PLUGINS=/var/lib/grafana/plugins”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_PROVISIONING=/etc/grafana/provisioning”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_SERVER_ROOT_URL=http://ip172-18-0-9-bgspma49cs9g00aq51p0-3000.direct.labs.play-with-docker.com”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_SECURITY_ADMIN_PASSWORD=*********”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Path Home” logger=settings path=/usr/share/grafana
t=2019-01-12T07:49:39+0000 lvl=info msg=“Path Data” logger=settings path=/var/lib/grafana
t=2019-01-12T07:49:39+0000 lvl=info msg=“Path Logs” logger=settings path=/var/log/grafana
t=2019-01-12T07:49:39+0000 lvl=info msg=“Path Plugins” logger=settings path=/var/lib/grafana/plugins
t=2019-01-12T07:49:39+0000 lvl=info msg=“Path Provisioning” logger=settings path=/etc/grafana/provisioning
t=2019-01-12T07:49:39+0000 lvl=info msg=“App mode production” logger=settings
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing HTTPServer” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing SqlStore” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=sqlite3
t=2019-01-12T07:49:39+0000 lvl=info msg=“Starting DB migration” logger=migrator
t=2019-01-12T07:49:39+0000 lvl=info msg=“Executing migration” logger=migrator id=“create migration_log table”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Executing migration” logger=migrator id=“create user table”
t=2019-01-12T07:49:39+0000 lvl=info msg=“Executing migration” logger=migrator id=“add unique index user.login”

t=2019-01-12T07:49:39+0000 lvl=info msg=“Created default admin” logger=sqlstore user=admin
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing SearchService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing RenderingService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing AlertingService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing DatasourceCacheService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing HooksService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing InternalMetricsService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing CleanUpService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing NotificationService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing ProvisioningService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing PluginManager” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Starting plugin search” logger=plugins
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing TracingService” logger=server
t=2019-01-12T07:49:39+0000 lvl=info msg=“Initializing Stream Manager”
t=2019-01-12T07:49:39+0000 lvl=info msg=“HTTP Server Listen” logger=http.server address=0.0.0.0:3000 protocol=http subUrl= socket=
t=2019-01-12T07:49:42+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=172.18.0.1 time_ms=0 size=29 referer=

How can i turn on grafana ?
Someone can give me a docker-compose to help me ?

https://labs.play-with-docker.com/?stack=https://gist.githubusercontent.com/jangaraj/8d607e28a68fe7745d6bea2488361c77/raw/cdbf84a22d964626e09e7b4149a058e51f360971/pwd-grafana-stack.yml

Hi,
have you test to acces on your browser ?

http://ip172-18-0-7-bgsrp1k3uhdg00aafqp0-3000.direct.labs.play-with-docker.com/

url change to http://ip172-18-0-7-bgsrp1k3uhdg00aafqp0-3000.direct.labs.play-with-docker.com/login

Response header :

  1. Content-Length:29
  2. Content-Type:text/html; charset=utf-8
  3. Date: Sat, 12 Jan 2019 10:12:42 GMT
  4. Location: /login
  5. Set-Cookie:redirect_to=%252F; Path=/; HttpOnly

and i’ve blank page

log :
t=2019-01-12T10:08:16+0000 lvl=info msg=“Starting Grafana” logger=server version=5.4.2 commit=d812109 branch=HEAD compiled=2018-12-13T12:49:23+0000
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config loaded from” logger=settings file=/usr/share/grafana/conf/defaults.ini
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config loaded from” logger=settings file=/etc/grafana/grafana.ini
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.data=/var/lib/grafana”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.logs=/var/log/grafana”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.plugins=/var/lib/grafana/plugins”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.provisioning=/etc/grafana/provisioning”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.log.mode=console”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_DATA=/var/lib/grafana”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_LOGS=/var/log/grafana”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_PLUGINS=/var/lib/grafana/plugins”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_PATHS_PROVISIONING=/etc/grafana/provisioning”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Config overridden from Environment variable” logger=settings var=“GF_SECURITY_ADMIN_PASSWORD=*********”
t=2019-01-12T10:08:16+0000 lvl=info msg=“Path Home” logger=settings path=/usr/share/grafana
t=2019-01-12T10:08:16+0000 lvl=info msg=“Path Data” logger=settings path=/var/lib/grafana
t=2019-01-12T10:08:16+0000 lvl=info msg=“Path Logs” logger=settings path=/var/log/grafana
t=2019-01-12T10:08:16+0000 lvl=info msg=“Path Plugins” logger=settings path=/var/lib/grafana/plugins
t=2019-01-12T10:08:16+0000 lvl=info msg=“Path Provisioning” logger=settings path=/etc/grafana/provisioning
t=2019-01-12T10:08:16+0000 lvl=info msg=“App mode production” logger=settings
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing HTTPServer” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing SqlStore” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=sqlite3


019-01-12T10:08:16+0000 lvl=info msg=“Created default admin” logger=sqlstore user=admin
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing SearchService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing RenderingService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing AlertingService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing DatasourceCacheService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing HooksService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing InternalMetricsService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing CleanUpService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing NotificationService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing ProvisioningService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing PluginManager” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Starting plugin search” logger=plugins
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing TracingService” logger=server
t=2019-01-12T10:08:16+0000 lvl=info msg=“Initializing Stream Manager”
t=2019-01-12T10:08:16+0000 lvl=info msg=“HTTP Server Listen” logger=http.server address=0.0.0.0:3000 protocol=http subUrl= socket=
t=2019-01-12T10:08:36+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=10.255.0.2 time_ms=0 size=29 referer=
t=2019-01-12T10:09:19+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=HEAD path=/ status=302 remote_addr=10.255.0.2 time_ms=0 size=0 referer=

it’s certainely a problem with proxy of play with docker break a response or request if it’s too long.

how can i active compress request and response from grafana server ?

Yes, I tested it. That is a performance issue of PWD. Use own instance and it will be fine.