Skip to content

Commit

Permalink
Add compose file for linux users
Browse files Browse the repository at this point in the history
which maps host.docker.internal into host-gateway.
It prevents 'host not found in upstream "host.docker.internal" in /etc/nginx/conf.d/default.conf:24' error.
Solution for this error found in

https://stackoverflow.com/questions/48546124/what-is-linux-equivalent-of-host-docker-internal/61001152
  • Loading branch information
federicaagostini committed Oct 31, 2021
1 parent e9e5408 commit 37a2df2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions compose/nginx-local-dev/docker-compose_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: '3'

volumes:
trustanchors:
cabundle:

services:

trust:
image: indigoiam/trustanchors
volumes:
- trustanchors:/etc/grid-security/certificates
- cabundle:/etc/pki

iam:
image: indigoiam/nginx
dns_search: local.io
container_name: iam

environment:
TZ: Europe/Rome
NGINX_HOST: iam
NGINX_PORT: 443

ports:
- "443:443"

volumes:
- /dev/urandom:/dev/random
- ./assets/iam.conf:/etc/nginx/conf.d/default.conf:ro

networks:
default:
aliases:
- iam.local.io

extra_hosts:
- "host.docker.internal:host-gateway"

0 comments on commit 37a2df2

Please sign in to comment.