Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: deployment updates. #157

Merged
merged 10 commits into from
Jan 7, 2024
Merged

build: deployment updates. #157

merged 10 commits into from
Jan 7, 2024

Conversation

morganney
Copy link
Owner

@morganney morganney commented Jan 5, 2024

@@ -1,6 +1,6 @@
# DNS resolution works at startup via `depends_on` for `web` service in compose.yaml.
upstream api_server {
server api:3000;
server ${UPSTREAM_API_HOST}:3000;
Copy link
Owner Author

Choose a reason for hiding this comment

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

In case I will use awsvpc network mode (which allows containers to communicate with localhost). This happens when running nginx as an aws copilot sidecar.

@morganney morganney changed the title fix: postgres port. build: deployment updates. Jan 5, 2024
VpcSecurityGroupIds:
- !Ref bmclusterDBClusterSecurityGroup
ServerlessV2ScalingConfiguration:
# Replace "All" below with "!Ref Env" to set different autoscaling limits per environment.
Copy link
Owner Author

Choose a reason for hiding this comment

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

Notice, without following what this comment suggests then every environment is the DBMinCapacity and DBMaxCapacity defined for All. In this case 2 and 8 respectively.

For now, the test environment is more or less a staging for beta testing, UAT, etc., so it makes sense to have the same capacity expected for production.

If necessary I can set up environment level autoscaling when I need more than a staging environment, or other environments.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Added #159 to resolve now having two initialization scripts to keep in sync.

@morganney morganney merged commit 556e254 into main Jan 7, 2024
1 check passed
@morganney morganney deleted the develop branch January 7, 2024 01:15
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.

Docker build secrets Deployment and Infrastructure
1 participant