Skip to content

Conversation

@rmainwork
Copy link
Contributor

Fixes a couple of issues with the docker setup

  1. Updates docker-compose.yml to point to the dev-portal service instead of the docker desktop DNS redirect
  2. Changes the command used in the makefile to use docker compose instead of the (deprecated) docker-compose python
    app

Also considered adding some changes in to remove the usage of docker profiles and container names, but thought we should probably talk about that and didn't want to derail this PR with that.

Usage of the `docker-compose` command is deprecated and instead it is
generally recommended that people use `docker compose` (note the lack of
hyphen) going forward. To that end, this commit replaces the invoation
of `docker-compose` with `docker compose`.

More info: https://stackoverflow.com/a/66526176
As a convenience docker desktop provides a DNS alias
(host.docker.internal) that can be used to connect to services on the
host machine from within containers. However, this would fail to work for anyone
not docker desktop.

Therefore, using service names here is probably a better option.
@rmainwork rmainwork requested a review from a team as a code owner January 6, 2025 21:20
@rmainwork rmainwork requested review from RubenSandwich and pbortnick and removed request for a team January 6, 2025 21:20
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2025

Vercel Previews Deployed

Name Status Preview Updated (UTC)
Dev Portal ✅ Ready (Inspect) Visit Preview Jan 6, 2025, 9:30 PM
Unified Docs API ✅ Ready (Inspect) Visit Preview Jan 6, 2025, 8:54 PM

Copy link
Contributor

@RubenSandwich RubenSandwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great. 👍🏻

@RubenSandwich RubenSandwich merged commit 9f11608 into main Jan 7, 2025
3 checks passed
@kaitlynnefuery kaitlynnefuery deleted the rm/docker-fixes branch February 18, 2025 18:53
im2nguyen pushed a commit that referenced this pull request Mar 6, 2025
* Switch to docker compose plugin

Usage of the `docker-compose` command is deprecated and instead it is
generally recommended that people use `docker compose` (note the lack of
hyphen) going forward. To that end, this commit replaces the invoation
of `docker-compose` with `docker compose`.

More info: https://stackoverflow.com/a/66526176

* Replace docker host DNS alias with service name

As a convenience docker desktop provides a DNS alias
(host.docker.internal) that can be used to connect to services on the
host machine from within containers. However, this would fail to work for anyone
not docker desktop.

Therefore, using service names here is probably a better option.
hashibot-web added a commit that referenced this pull request Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants