Skip to content

Commit

Permalink
fix: docker compose on linux
Browse files Browse the repository at this point in the history
On Linux, `extra_hosts` stanza is required for services inside the
containers to be able to connect to those ports on the host.
  • Loading branch information
thomasknauth committed Jan 29, 2024
1 parent 7c8cab5 commit c51be0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ services:
- DATA_FETCHER_URL=http://data-fetcher:3040
- BATCHES_PROCESSING_POLLING_INTERVAL=1000
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"

data-fetcher:
platform: linux/amd64
Expand All @@ -38,6 +40,8 @@ services:
ports:
- '3040:3040'
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"

api:
platform: linux/amd64
Expand Down

0 comments on commit c51be0d

Please sign in to comment.