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

Set up docker-compose to replace the startup scripts #24

Open
sdankel opened this issue Jan 12, 2025 · 0 comments · May be fixed by #25
Open

Set up docker-compose to replace the startup scripts #24

sdankel opened this issue Jan 12, 2025 · 0 comments · May be fixed by #25
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sdankel
Copy link
Member

sdankel commented Jan 12, 2025

Context

A quickstart script with an ephemeral setup (e.g. docker).
Ideally we want to be able to spin up dependencies for local development.

This would be:

  • The database
  • Potentially a database UI (pgadmin)
  • Migration script(s) to perform migration on startup

Simply running docker compose up should run the relevant services - which local app should be able to connect with.
The .env and or .env.local file(s) should be used here for setting relevant env settings for the containers.

Background

@sdankel sdankel added enhancement New feature or request help wanted Extra attention is needed labels Jan 12, 2025
shitover added a commit to shitover/forc.pub that referenced this issue Jan 13, 2025
Fixes FuelLabs#24

Add docker-compose setup to replace startup scripts.

* Add `docker-compose.yml` to define services for PostgreSQL, pgAdmin, and migration scripts.
* Update `README.md` to include instructions for using `docker compose up` for local development.
* Modify `scripts/start_local_server.sh` to remove the call to `scripts/start_local_db.sh` and use `docker-compose.yml` for starting services.
* Delete `scripts/start_local_db.sh`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/FuelLabs/forc.pub/issues/24?shareId=XXXX-XXXX-XXXX-XXXX).
@shitover shitover linked a pull request Jan 13, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant