Docker deployment#32
Merged
Merged
Conversation
This commit includes the following changes:
- Added a new `docker-compose.yml` file to manage multi-container Docker applications.
- Updated the `Dockerfile` in the `docker/app` directory to:
- Install system dependencies for `psycopg2` and `uv`.
- Copy the full project source into the Docker image.
Future work will include putting docker-compose.yml into the docker directory
This spatial index is automatically created by PostGIS when the `point` column is created, and it can cause issues with the migration if it already exists. This change ensures that the index is dropped before the migration runs, preventing potential conflicts.
This commit ensures that the index `idx_location_point` is dropped if it exists before creating a new one. This prevents errors during migrations when the index already exists. This is particularly useful in environments where the database schema may have been modified manually or by previous migrations. This change is part of the initial migration setup to ensure a clean state for the `location`
Use flexible include_object function to exclude specific tables from migrations. Ensure entrypoint script is executable and correctly handles database migrations.
This commit ensures that the index `idx_location_point` is dropped if it exists before attempting to create it again. This prevents errors during migrations when the index already exists. This change is made in the Alembic migration script `5901f059248a_initial_migration.py` and the Dockerfile for the application.
This allows the migration scripts to be created with the correct database host depending on the environment.
This allows the env variables to be set for the docker containers to talk with each other - that is, host must be "db" for the app to connect to the database because in Docker, the host should be the name of the database service, not localhost.
This should be there for all to use. The database connection strings are now made through environment variables, which are set in the appropriate yaml/.env/secrets files.
jirhiker
approved these changes
Jul 22, 2025
ksmuczynski
approved these changes
Jul 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR...