Skip to content

Commit 2abb8a7

Browse files
author
Vidas P
committed
Add host alias to match OSX
On docker for mac you can use `host.docker.internal` to access host network. Add this alias so it will work on linux as well (development docker-compose only).
1 parent ef1e107 commit 2abb8a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/docker-compose.local.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ services:
1515
- 5432:5432
1616

1717
active_workflow_web:
18+
extra_hosts:
19+
- "host.docker.internal:host-gateway"
1820
build:
1921
context: ../
2022
dockerfile: Dockerfile
@@ -33,6 +35,8 @@ services:
3335
command: /scripts/init
3436

3537
active_workflow_scheduler:
38+
extra_hosts:
39+
- "host.docker.internal:host-gateway"
3640
build:
3741
context: ../
3842
dockerfile: Dockerfile
@@ -49,6 +53,8 @@ services:
4953
command: bundle exec rails runner bin/scheduler.rb
5054

5155
active_workflow_worker:
56+
extra_hosts:
57+
- "host.docker.internal:host-gateway"
5258
build:
5359
context: ../
5460
dockerfile: Dockerfile

0 commit comments

Comments
 (0)