# Docker

# Packages

# lazydoker (tui)

The lazier way to manage everything docker

github.com/jesseduffield/lazydocker (opens new window)

# Resources

# Networking

# Access native services on Docker for linux

To access a native service on a linux computer from inside a Docker container (ex: localhost:3000) you have to add the following to the docker-compose.yaml:

  graphql-engine:
    image: hasura/graphql-engine:v1.3.3
    environment:
      EVENT_TRIGGER_URL:'http://host.docker.internal:3000/api/event-triggers'
    extra_hosts:
      - "host.docker.internal:host-gateway"

Note: In the environmental variable, localhost is replaced with host.docker.internal and the extra_hosts connects the internal network to the host's gateway.