Skip to content

Commit f9dfc5a

Browse files
quartjeMKodde
authored andcommitted
Docker compose: Add host.docker.internal host alias. This allows the container to connect to the local machine, eg to connect to PHPstorm
1 parent c8e76a6 commit f9dfc5a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

stepup/docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ services:
3535
- ${PWD}/:/config
3636
networks:
3737
openconextdev:
38+
extra_hosts:
39+
- "host.docker.internal:host-gateway"
3840

3941
ssp:
4042
image: ghcr.io/openconext/openconext-devssp/devssp:latest
@@ -52,6 +54,8 @@ services:
5254
volumes:
5355
- ${PWD}/:/config
5456
- /dev/log:/dev/log
57+
extra_hosts:
58+
- "host.docker.internal:host-gateway"
5559

5660
gateway:
5761
image: ghcr.io/openconext/stepup-gateway/stepup-gateway:prod
@@ -63,6 +67,9 @@ services:
6367
- ${PWD}/:/config
6468
- /dev/log:/dev/log
6569
- ${PWD}/gateway/surfnet_yubikey.yaml:/var/www/html/config/packages/surfnet_yubikey.yaml
70+
extra_hosts:
71+
- "host.docker.internal:host-gateway"
72+
6673

6774
ra:
6875
image: ghcr.io/openconext/stepup-ra/stepup-ra:prod
@@ -73,6 +80,8 @@ services:
7380
volumes:
7481
- ${PWD}/:/config
7582
- /dev/log:/dev/log
83+
extra_hosts:
84+
- "host.docker.internal:host-gateway"
7685

7786
selfservice:
7887
image: ghcr.io/openconext/stepup-selfservice/stepup-selfservice:prod
@@ -83,6 +92,8 @@ services:
8392
volumes:
8493
- ${PWD}/:/config
8594
- /dev/log:/dev/log
95+
extra_hosts:
96+
- "host.docker.internal:host-gateway"
8697

8798
demogssp:
8899
image: ghcr.io/openconext/stepup-gssp-example/stepup-gssp-example:prod
@@ -93,6 +104,8 @@ services:
93104
volumes:
94105
- ${PWD}/:/config
95106
- /dev/log:/dev/log
107+
extra_hosts:
108+
- "host.docker.internal:host-gateway"
96109

97110
tiqr:
98111
image: ghcr.io/openconext/stepup-tiqr/stepup-tiqr:prod
@@ -103,6 +116,8 @@ services:
103116
volumes:
104117
- ${PWD}/:/config
105118
- /dev/log:/dev/log
119+
extra_hosts:
120+
- "host.docker.internal:host-gateway"
106121

107122
azuremfa:
108123
image: ghcr.io/openconext/stepup-azuremfa/stepup-azuremfa:prod
@@ -113,6 +128,8 @@ services:
113128
volumes:
114129
- ${PWD}/:/config
115130
- /dev/log:/dev/log
131+
extra_hosts:
132+
- "host.docker.internal:host-gateway"
116133

117134
mailcatcher:
118135
image: sj26/mailcatcher:latest

0 commit comments

Comments
 (0)