Skip to content

Commit

Permalink
make dev fails to start because of container connection issue on ma…
Browse files Browse the repository at this point in the history
…cOS (fabric8-services#1705)

remove the `network_mode` option in the containers
specify the host/port for the `auth` service to connect to its `db`, using the
internal Postgres port (5432) and using the container's hostname (the container
name itself)

Fixes fabric8-services#1705

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
  • Loading branch information
xcoulon committed Oct 10, 2017
1 parent 731d08e commit afc513a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ services:
F8_DEVELOPER_MODE_ENABLED: "true"
ports:
- "8080:8080"
network_mode: "host"
depends_on:
- auth
db-auth:
Expand All @@ -30,8 +29,9 @@ services:
environment:
AUTH_WIT_URL: "http://localhost:8080"
AUTH_DEVELOPER_MODE_ENABLED: "true"
AUTH_POSTGRES_HOST: db-auth
AUTH_POSTGRES_PORT: 5432
ports:
- "8089:8089"
network_mode: "host"
depends_on:
- db-auth

0 comments on commit afc513a

Please sign in to comment.