Skip to content

chore - fly deployment #11

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

Merged
merged 7 commits into from
Aug 5, 2024
Merged

chore - fly deployment #11

merged 7 commits into from
Aug 5, 2024

Conversation

jgoux
Copy link
Contributor

@jgoux jgoux commented Aug 2, 2024

What kind of change does this PR introduce?

chore

What is the current behavior?

we can only run db-service locally

What is the new behavior?

we can deploy db-service

@jgoux jgoux mentioned this pull request Aug 2, 2024

3. Set the appropriate environment variables and secrets for the app "postgres-new-certbot" (see `.env.example`) in fly.io UI (available in Bitwarden as a secure note "fly.io postgres.new cerbot .env")

4. Setup [cron-manager](https://github.com/fly-apps/cron-manager?tab=readme-ov-file#getting-started) to run the certbot service every 2 weeks with the following `schedules.json`:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use this approach to schedule machines so that we don't need a separate cron manager instance running?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's investigate this approach once we have the POC deployed and working. I wanted to use this option but as you can read in the thread, the docs is lacking and finding the right command incantations seems not trivial.
But I'm definitely open to switch to it if we can make it works. 😄

@@ -22,5 +22,5 @@ cpu_kind = 'shared'
cpus = 1

[mounts]
source = "postgres-new-data"
source = "postgres_new_data"
Copy link
Collaborator

@gregnr gregnr Aug 2, 2024

Choose a reason for hiding this comment

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

Wondering if a volume is really necessary vs. just a directory on the ephemeral VM we treat as a cache? As soon as you attach a volume on Fly, auto scaling doesn't work (or only works for as many volumes as you manually create since volumes are 1-to-1 to a machine).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it's not necessary, I'll find a way of deleting the cache in another PR 👍

@gregnr gregnr mentioned this pull request Aug 2, 2024
@jgoux jgoux merged commit 442b984 into feat/upload-db Aug 5, 2024
1 check failed
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