Skip to content

Conversation

jordanstephens
Copy link
Member

Description

Assuming host mode for short-form ports in compose file for postgres

Linked Issues

Checklist

  • I have performed a self-review of my code
  • I have added appropriate tests
  • I have updated the Defang CLI docs and/or README to reflect my changes, if necessary

Comment on lines +28 to +31
- mode: ingress
target: 5432
published: "5432"
protocol: tcp
Copy link
Member Author

Choose a reason for hiding this comment

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

@lionello should this include the fixup or not?

@jordanstephens jordanstephens force-pushed the jordan/postgres-ports-default-host-mode branch from eb0c6a2 to b7dedb5 Compare September 18, 2025 23:45
@@ -2,6 +2,8 @@
! service "no-ext": stateful service will lose data on restart; use a managed service instead
! service "no-ports": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
! service "no-ports-override": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
! service "short-ports": ingress port without healthcheck defaults to GET / HTTP/1.1
Copy link
Member

Choose a reason for hiding this comment

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

this warning is shown because the fixup happens too late

Copy link
Member Author

Choose a reason for hiding this comment

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

Afaict this test doesn't consider fixup

@jordanstephens jordanstephens force-pushed the jordan/postgres-ports-default-host-mode branch from 3a1122b to 0255976 Compare September 19, 2025 22:09
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.

3 participants