Skip to content

Commit

Permalink
Allow Docker to generate container names to avoid cross-stack conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
eecavanna committed Mar 5, 2025
1 parent 8d1d2de commit 08061d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ services:
# https://github.com/dagster-io/dagster/blob/0.11.9/python_modules/libraries/dagster-postgres/dagster_postgres_tests/docker-compose.yml
dagster-postgresql:
image: postgres:11
container_name: dagster-postgresql
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
Expand All @@ -21,7 +20,6 @@ services:
context: .
dockerfile: nmdc_runtime/Dockerfile
target: dagster
container_name: dagster-dagit
entrypoint: ["tini", "--", "../lib/nmdc_runtime/site/entrypoint-dagit.sh"]
expose:
- "3000"
Expand All @@ -46,7 +44,6 @@ services:
context: .
dockerfile: nmdc_runtime/Dockerfile
target: dagster
container_name: dagster-daemon
entrypoint: ["tini", "--", "../lib/nmdc_runtime/site/entrypoint-daemon.sh"]
restart: on-failure
env_file:
Expand All @@ -65,7 +62,6 @@ services:
context: .
dockerfile: nmdc_runtime/Dockerfile
target: fastapi
container_name: fastapi
ports:
- "8000:8000"
env_file:
Expand All @@ -77,7 +73,6 @@ services:

mongo:
image: mongo:6.0.4
container_name: mongo
ports:
- "27018:27017"
volumes:
Expand All @@ -98,7 +93,6 @@ services:
context: .
dockerfile: nmdc_runtime/Dockerfile
target: test
container_name: test
env_file:
- .env.test
depends_on:
Expand Down
5 changes: 0 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ services:
# https://github.com/dagster-io/dagster/blob/0.11.9/python_modules/libraries/dagster-postgres/dagster_postgres_tests/docker-compose.yml
dagster-postgresql:
image: postgres:11
container_name: dagster-postgresql
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
Expand All @@ -21,7 +20,6 @@ services:
context: .
dockerfile: nmdc_runtime/Dockerfile
target: dagster
container_name: dagster-dagit
entrypoint: ["tini", "--", "../lib/nmdc_runtime/site/entrypoint-dagit.sh"]
expose:
- "3000"
Expand All @@ -46,7 +44,6 @@ services:
context: .
dockerfile: nmdc_runtime/Dockerfile
target: dagster
container_name: dagster-daemon
entrypoint: ["tini", "--", "../lib/nmdc_runtime/site/entrypoint-daemon.sh"]
restart: on-failure
env_file:
Expand All @@ -65,7 +62,6 @@ services:
context: .
dockerfile: nmdc_runtime/Dockerfile
target: fastapi
container_name: fastapi
ports:
- "8000:8000"
command: ["uvicorn", "nmdc_runtime.api.main:app", "--reload", "--host", "0.0.0.0", "--port", "8000"]
Expand All @@ -78,7 +74,6 @@ services:

mongo:
image: mongo:6.0.4
container_name: mongo
ports:
- "27018:27017"
volumes:
Expand Down

0 comments on commit 08061d0

Please sign in to comment.