Ratel not working

I am using the docker version in a remote server.

docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 dgraph/standalone:latest

it looks like that the port 8080 is working since I can curl a graphql schema. But I can open the localhost:8000 in a browser. I followed some tips that I found here, to use docker exec, and that happens:

curl localhost:8000

curl: (7) Failed to connect to localhost port 8000: Connection refused

here is the log from the docker
Warning: This standalone version is meant for quickstart purposes only.
It is NOT RECOMMENDED for production environments.
[Sentry] 2022/04/09 02:36:37 Integration installed: ContextifyFrames
[Sentry] 2022/04/09 02:36:37 Integration installed: Environment
[Sentry] 2022/04/09 02:36:37 Integration installed: Modules
[Sentry] 2022/04/09 02:36:37 Integration installed: IgnoreErrors
[Sentry] 2022/04/09 02:36:37 Integration installed: ContextifyFrames
[Sentry] 2022/04/09 02:36:37 Integration installed: Environment
[Sentry] 2022/04/09 02:36:37 Integration installed: Modules
[Sentry] 2022/04/09 02:36:37 Integration installed: IgnoreErrors
[Sentry] 2022/04/09 02:36:37 Integration installed: ContextifyFrames
[Sentry] 2022/04/09 02:36:37 Integration installed: Environment
[Sentry] 2022/04/09 02:36:37 Integration installed: Modules
[Sentry] 2022/04/09 02:36:37 Integration installed: IgnoreErrors
[Sentry] 2022/04/09 02:36:37 Integration installed: ContextifyFrames
[Sentry] 2022/04/09 02:36:37 Integration installed: Environment
[Sentry] 2022/04/09 02:36:37 Integration installed: Modules
[Sentry] 2022/04/09 02:36:37 Integration installed: IgnoreErrors
I0409 02:36:38.039219 36 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --telemetry “sentry=false;” flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0409 02:36:38.042751 41 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --telemetry “sentry=false;” flag. For more info, see https://dgraph.io/docs/howto/#data-handling.
I0409 02:36:38.157123 36 init.go:110]

Dgraph version : v21.12.0
Dgraph codename : zion
Dgraph SHA-256 : 078c75df9fa1057447c8c8afc10ea57cb0a29dfb22f9e61d8c334882b4b4eb37
Commit SHA-1 : d62ed5f15
Commit timestamp : 2021-12-02 21:20:09 +0530
Branch : HEAD
Go version : go1.17.3
jemalloc enabled : true

For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit https://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit Products – Dgraph | GraphQL Cloud Platform.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.

I0409 02:36:38.157135 36 run.go:910] x.Config: {PortOffset:0 Limit:max-retries=-1; shared-instance=false; max-splits=1000; normalize-node=10000; disallow-drop=false; txn-abort-after=5m; query-timeout=0ms; max-pending-queries=64; mutations=allow; query-edge=1000000; mutations-nquad=1000000 LimitMutationsNquad:1000000 LimitQueryEdge:1000000 BlockClusterWideDrop:false LimitNormalizeNode:10000 QueryTimeout:0s MaxRetries:-1 SharedInstance:false GraphQL:{Introspection:true Debug:false Extensions:true PollInterval:1s} Lambda:{Url: Num:1 Port:20000 RestartAfter:30s}}
I0409 02:36:38.157174 36 run.go:911] x.WorkerConfig: {TmpDir:t ExportPath:export Trace:ratio=0.01; jaeger=; datadog= MyAddr: ZeroAddr:[localhost:5080] TLSClientConfig: TLSServerConfig: Raft:snapshot-after-entries=10000; snapshot-after-duration=30m; pending-proposals=256; idx=; group=; learner=false Badger:{Dir: ValueDir: SyncWrites:false NumVersionsToKeep:1 ReadOnly:false Logger:0xc0004ea1c0 Compression:1 InMemory:false MetricsEnabled:true NumGoroutines:8 MemTableSize:67108864 BaseTableSize:2097152 BaseLevelSize:10485760 LevelSizeMultiplier:10 TableSizeMultiplier:2 MaxLevels:7 VLogPercentile:0 ValueThreshold:1048576 NumMemtables:15 BlockSize:4096 BloomFalsePositive:0.01 BlockCacheSize:322122547 IndexCacheSize:214748364 NumLevelZeroTables:5 NumLevelZeroTablesStall:15 ValueLogFileSize:1073741823 ValueLogMaxEntries:1000000 NumCompactors:4 CompactL0OnClose:false LmaxCompaction:false ZSTDCompressionLevel:0 VerifyValueChecksum:false EncryptionKey: EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 AllowStopTheWorld:true DetectConflicts:true NamespaceOffset:-1 ExternalMagicVersion:0 managedTxns:false maxBatchCount:0 maxBatchSize:0 maxValueThreshold:0} WhiteListedIPRanges:[{Lower:0.0.0.0 Upper:255.255.255.255}] StrictMutations:false AclEnabled:false HmacSecret:**** AbortOlderThan:5m0s ProposedGroupId:0 StartTime:2022-04-09 02:36:37.803528931 +0000 UTC m=+0.154157542 Security:whitelist=0.0.0.0/0; token= EncryptionKey:**** LogRequest:0 HardSync:false Audit:false}
I0409 02:36:38.157218 36 run.go:912] worker.Config: {PostingDir:p WALDir:w MutationsMode:1 AuthToken: HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s CachePercentage:50,30,20 CacheMb:1024 Audit: ChangeDataConf:file=; kafka=; sasl_user=; sasl_password=; ca_cert=; client_cert=; client_key=; sasl-mechanism=PLAIN; tls=false;}
I0409 02:36:38.157962 36 storage.go:125] Init Raft Storage with snap: 0, first: 1, last: 0
I0409 02:36:38.158002 36 server_state.go:140] Opening postings BadgerDB with options: {Dir:p ValueDir:p SyncWrites:false NumVersionsToKeep:2147483647 ReadOnly:false Logger:0x3771ec8 Compression:1 InMemory:false MetricsEnabled:true NumGoroutines:8 MemTableSize:67108864 BaseTableSize:2097152 BaseLevelSize:10485760 LevelSizeMultiplier:10 TableSizeMultiplier:2 MaxLevels:7 VLogPercentile:0 ValueThreshold:1048576 NumMemtables:15 BlockSize:4096 BloomFalsePositive:0.01 BlockCacheSize:322122547 IndexCacheSize:214748364 NumLevelZeroTables:5 NumLevelZeroTablesStall:15 ValueLogFileSize:1073741823 ValueLogMaxEntries:1000000 NumCompactors:4 CompactL0OnClose:false LmaxCompaction:false ZSTDCompressionLevel:0 VerifyValueChecksum:false EncryptionKey: EncryptionKeyRotationDuration:240h0m0s BypassLockGuard:false ChecksumVerificationMode:0 AllowStopTheWorld:true DetectConflicts:false NamespaceOffset:1 ExternalMagicVersion:1 managedTxns:false maxBatchCount:0 maxBatchSize:0 maxValueThreshold:0}
I0409 02:36:38.160200 41 init.go:110]

Dgraph version : v21.12.0
Dgraph codename : zion
Dgraph SHA-256 : 078c75df9fa1057447c8c8afc10ea57cb0a29dfb22f9e61d8c334882b4b4eb37
Commit SHA-1 : d62ed5f15
Commit timestamp : 2021-12-02 21:20:09 +0530
Branch : HEAD
Go version : go1.17.3
jemalloc enabled : true

For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit https://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit Products – Dgraph | GraphQL Cloud Platform.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.

I0409 02:36:38.160231 41 run.go:254] Setting Config to: {raft:0xc0004a03b8 telemetry:0xc0004a0388 limit:0xc0004a03c0 bindall:true portOffset:0 numReplicas:1 peer: w:zw rebalanceInterval:480000000000 tlsClientConfig: audit: limiterConfig:0xc0004dc670}
I0409 02:36:38.160254 41 run.go:144] Setting up grpc listener at: 0.0.0.0:5080
I0409 02:36:38.160369 41 run.go:144] Setting up http listener at: 0.0.0.0:6080
I0409 02:36:38.161062 41 storage.go:125] Init Raft Storage with snap: 0, first: 1, last: 0
I0409 02:36:38.161113 41 node.go:152] Setting raft.Config to: &{ID:1 peers: learners: ElectionTick:20 HeartbeatTick:1 Storage:0xc0006bce00 Applied:0 MaxSizePerMsg:262144 MaxCommittedSizePerReady:67108864 MaxUncommittedEntriesSize:0 MaxInflightMsgs:256 CheckQuorum:false PreVote:true ReadOnlyOption:0 Logger:0x3771ec8 DisableProposalForwarding:false}
I0409 02:36:38.161390 41 node.go:326] Group 0 found 0 entries
I0409 02:36:38.161396 41 raft.go:706] Starting a brand new node
I0409 02:36:38.161412 41 log.go:34] 1 became follower at term 0
I0409 02:36:38.161417 41 log.go:34] newRaft 1 [peers: , term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
I0409 02:36:38.161420 41 log.go:34] 1 became follower at term 1
I0409 02:36:38.161538 41 run.go:388] Running Dgraph Zero…
E0409 02:36:38.162119 41 raft.go:590] While proposing CID: Not Zero leader. Aborting proposal: cid:“6a0302fb-0d8d-405e-ae6e-b43ffc00dbdc” . Retrying…
I0409 02:36:38.162054 41 node.go:189] Setting conf state to nodes:1
I0409 02:36:38.162394 41 raft.go:1009] Done applying conf change at 0x1
I0409 02:36:38.176622 36 log.go:34] All 0 tables opened in 0s
I0409 02:36:38.179512 36 log.go:34] Discard stats nextEmptySlot: 0
I0409 02:36:38.179550 36 log.go:34] Set nextTxnTs to 0
I0409 02:36:38.183758 36 groups.go:100] Current Raft Id: 0x0
I0409 02:36:38.183774 36 groups.go:116] Sending member request to Zero: addr:“localhost:7080”
I0409 02:36:38.183931 36 worker.go:114] Worker listening at address: [::]:7080
I0409 02:36:38.185315 36 run.go:713] Bringing up GraphQL HTTP API at 0.0.0.0:8080/graphql
I0409 02:36:38.185326 36 run.go:714] Bringing up GraphQL HTTP admin API at 0.0.0.0:8080/admin
E0409 02:36:38.185329 36 groups.go:1223] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err:
I0409 02:36:38.187391 36 run.go:514] Setting up lambda servers
I0409 02:36:38.187410 36 run.go:742] gRPC server started. Listening on port 9080
I0409 02:36:38.187443 36 run.go:743] HTTP server started. Listening on port 8080
I0409 02:36:38.284193 36 pool.go:164] CONN: Connecting to localhost:5080
I0409 02:36:38.286633 41 zero.go:511] Got connection request: cluster_info_only:true
I0409 02:36:38.286709 41 log.go:34] 1 no leader at term 1; dropping index reading msg
E0409 02:36:39.186656 36 groups.go:1223] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err:
E0409 02:36:40.186956 36 groups.go:1223] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err:
I0409 02:36:40.188106 36 run.go:533] Running node command: /usr/bin/node t/index.js
Server Listening on port 20000!
W0409 02:36:40.287116 41 node.go:713] [0x1] Read index context timed out
I0409 02:36:40.287151 41 log.go:34] 1 no leader at term 1; dropping index reading msg
I0409 02:36:40.961924 41 log.go:34] 1 is starting a new election at term 1
I0409 02:36:40.961979 41 log.go:34] 1 became pre-candidate at term 1
I0409 02:36:40.961984 41 log.go:34] 1 received MsgPreVoteResp from 1 at term 1
I0409 02:36:40.962010 41 log.go:34] 1 became candidate at term 2
I0409 02:36:40.962014 41 log.go:34] 1 received MsgVoteResp from 1 at term 2
I0409 02:36:40.962025 41 log.go:34] 1 became leader at term 2
I0409 02:36:40.962031 41 log.go:34] raft.node: 1 elected leader 1 at term 2
I0409 02:36:40.962065 41 raft.go:955] I’ve become the leader, updating leases.
I0409 02:36:40.962081 41 assign.go:47] Updated UID: 1. Txn Ts: 1. NsID: 1.
E0409 02:36:41.162499 41 raft.go:590] While proposing CID: Not Zero leader. Aborting proposal: cid:“5b9a5303-87a9-4384-9dfa-7289fab68a0d” . Retrying…
E0409 02:36:41.187626 36 groups.go:1223] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err:
E0409 02:36:42.188347 36 groups.go:1223] Error during SubscribeForUpdates for prefix “\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00”: Unable to find any servers for group: 1. closer err:
W0409 02:36:42.287732 41 node.go:713] [0x1] Read index context timed out
I0409 02:36:42.287877 41 zero.go:536] Connected: cluster_info_only:true
I0409 02:36:42.288802 41 zero.go:511] Got connection request: addr:“localhost:7080”
I0409 02:36:42.289028 41 pool.go:164] CONN: Connecting to localhost:7080
I0409 02:36:42.289157 41 zero.go:676] Connected: id:1 group_id:1 addr:“localhost:7080”
I0409 02:36:42.289326 36 groups.go:135] Connected to group zero. Assigned group: 1
I0409 02:36:42.289343 36 groups.go:137] Raft Id after connection to Zero: 0x1
I0409 02:36:42.289351 36 draft.go:348] Node ID: 0x1 with GroupID: 1
I0409 02:36:42.289357 36 draft.go:357] RaftContext: id:1 group:1 addr:“localhost:7080”
I0409 02:36:42.289424 36 node.go:152] Setting raft.Config to: &{ID:1 peers: learners: ElectionTick:20 HeartbeatTick:1 Storage:0xc000527200 Applied:0 MaxSizePerMsg:262144 MaxCommittedSizePerReady:67108864 MaxUncommittedEntriesSize:0 MaxInflightMsgs:256 CheckQuorum:false PreVote:true ReadOnlyOption:0 Logger:0x3771ec8 DisableProposalForwarding:false}
I0409 02:36:42.289530 36 log.go:34] Number of ranges found: 1
I0409 02:36:42.289547 36 log.go:34] Sent range 0 for iteration: [, ) of size: 0 B
I0409 02:36:42.289562 36 log.go:34] LoadFromDb Schema Streaming about 0 B of uncompressed data (0 B on disk)
I0409 02:36:42.292704 36 log.go:34] LoadFromDb Schema Sent data of size 0 B
I0409 02:36:42.292790 36 log.go:34] Number of ranges found: 1
I0409 02:36:42.292790 36 log.go:34] LoadFromDb Type Streaming about 0 B of uncompressed data (0 B on disk)
I0409 02:36:42.292810 36 log.go:34] Sent range 0 for iteration: [, ) of size: 0 B
I0409 02:36:42.292954 36 log.go:34] LoadFromDb Type Sent data of size 0 B
I0409 02:36:42.292985 36 groups.go:154] Load schema from DB: OK
I0409 02:36:42.293004 36 node.go:326] Group 1 found 0 entries
I0409 02:36:42.293017 36 draft.go:2198] New Node for group: 1
I0409 02:36:42.293040 36 log.go:34] 1 became follower at term 0
I0409 02:36:42.293050 36 log.go:34] newRaft 1 [peers: , term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
I0409 02:36:42.293056 36 log.go:34] 1 became follower at term 1
I0409 02:36:42.293081 36 draft.go:279] Operation started with id: opRollup
I0409 02:36:42.293111 36 groups.go:157] Init and start Raft node: OK
I0409 02:36:42.293152 36 groups.go:867] Got address of a Zero leader: localhost:5080
I0409 02:36:42.293153 36 draft.go:1507] Found Raft checkpoint: 0
I0409 02:36:42.293337 36 groups.go:881] Starting a new membership stream receive from localhost:5080.
I0409 02:36:42.293276 36 node.go:189] Setting conf state to nodes:1
I0409 02:36:42.293455 36 log.go:34] 1 is starting a new election at term 1
I0409 02:36:42.293481 36 log.go:34] 1 became pre-candidate at term 1
I0409 02:36:42.293490 36 log.go:34] 1 received MsgPreVoteResp from 1 at term 1
I0409 02:36:42.293505 36 log.go:34] 1 became candidate at term 2
I0409 02:36:42.293508 36 log.go:34] 1 received MsgVoteResp from 1 at term 2
I0409 02:36:42.293518 36 log.go:34] 1 became leader at term 2
I0409 02:36:42.293523 36 log.go:34] raft.node: 1 elected leader 1 at term 2
I0409 02:36:42.294055 36 groups.go:898] Received first state update from Zero: counter:3 groups:<key:1 value:<members:<key:1 value:<id:1 group_id:1 addr:“localhost:7080” > > > > zeros:<key:1 value:<id:1 addr:“localhost:5080” leader:true > > maxRaftId:1
E0409 02:36:43.186263 36 admin.go:1137] namespace: 0. Error reading GraphQL schema: Please retry again, server is not ready to accept requests.
I0409 02:36:43.188478 36 pool.go:164] CONN: Connecting to localhost:7080
I0409 02:36:43.292925 41 pool.go:327] CONN: Re-established connection with localhost:7080.
I0409 02:36:43.294226 36 groups.go:165] Informed Zero about tablets I have: OK
I0409 02:36:43.294255 36 groups.go:953] Leader idx=0x1 of group=1 is connecting to Zero for txn updates
I0409 02:36:43.294268 36 groups.go:965] Got Zero leader: localhost:5080
I0409 02:36:43.295287 36 groups.go:493] Serving tablet for: 0-dgraph.type
I0409 02:36:43.296178 36 groups.go:493] Serving tablet for: 0-dgraph.drop.op
I0409 02:36:43.296830 36 groups.go:493] Serving tablet for: 0-dgraph.graphql.schema
I0409 02:36:43.297445 36 groups.go:493] Serving tablet for: 0-dgraph.graphql.xid
I0409 02:36:43.298044 36 groups.go:493] Serving tablet for: 0-dgraph.graphql.p_query
I0409 02:36:43.298194 36 groups.go:168] Upserted Schema and Types: OK
I0409 02:36:43.298204 36 groups.go:171] Server is ready: OK
I0409 02:36:43.298210 36 access_ee.go:412] ResetAcl closed
I0409 02:36:43.298214 36 access_ee.go:322] RefreshAcls closed
I0409 02:36:44.163616 41 raft.go:583] CID set for cluster: bdf55d5e-401b-44b9-b469-a55c3db76261
I0409 02:36:44.163705 41 license_ee.go:46] Enterprise trial license proposed to the cluster: license:<maxNodes:18446744073709551615 expiryTs:1652063804 >
I0409 02:36:48.187942 36 admin.go:1148] namespace: 0. No GraphQL schema in Dgraph; serving empty GraphQL API

Ratel is in a separate container image now, but some of the Dgraph documentation may not have been updated to reflect that.

dgraph/ratel - Docker Image | Docker Hub

thanks for the answer =)