There are two ways to run service using docker-compose (recommended):
docker-compose up app
or running using poetry:
- Update poetry to 1.2.0 version (once)
poetry self update --preview
- Create file with env variables (once):
cp .env.example .env
- Run docker related services:
docker-compose up db kafka
- Run service:
poetry run docker/start.sh
To have some test data on the developer environment, you can recreate the database from backups of the database on staging.
- Login to aws:
aws sso login --profile profile_name
- Download backups
./docker/dumps-download.sh
- Remove database volumes
docker-compose down --volumes
docker-compose run --rm test
- autogenerate migration
docker-compose run --rm alembic-autogenerate "Migration message"
- upgrade to latest version
docker-compose run --rm alembic upgrade heads
- upgrade to previous version
docker-compose run --rm alembic downgrade -1