Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Backend Backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Veiculos Via Montadora
  • BackendBackend
  • Issues
  • #1

Closed
Open
Created Jun 06, 2023 by Arthur Sudbrack Ibarra@arthur.ibarra😁Owner

Configure 'extra_hosts' Field of API Container inside docker-compose File

We need to configure the extra_hosts field of the API container defined inside docker-compose.yaml. When running on Windows, it is not needed, but when running on Linux, which is the case for our EC2, if we want to use the DNS host.docker.internal, we must map it like this:

version: "3.8"
services:
  api:
    extra_hosts:
      - "host.docker.internal:host-gateway"
Edited Jun 06, 2023 by Arthur Sudbrack Ibarra
Assignee
Assign to
Time tracking