Run app on Windows
Run the Metadata Capture application locally on a Windows machine using Docker Compose for a self-contained environment with PostgreSQL database and Keycloak IAM.
Prerequisites
Ensure you have the following tools installed:
- Git: Version control system
- Docker Desktop for Windows: For running containerized services
Navigate to the project directory
Navigate to the cloned repository:
cd dca-metadata-capture
Build and launch the environment
-
Build the Docker image:
docker compose -f docker-compose.win.yaml build -
Launch the environment:
docker compose -f docker-compose.win.yaml up -
In a new terminal, execute database migrations to prepare the system:
docker compose -f docker-compose.win.yaml exec -e LOAD_INITIAL_DATA=True app alembic upgrade headThis configuration will deploy both a PostgreSQL database and a Keycloak IAM as Docker containers along with the main application, creating a self-contained testing environment.
Access the application
Once operational, the application can be accessed at http://localhost:8000.
Login credentials
You can log in using:
- Email: ami@lnds.lu
- Password: test
Keycloak admin console
To manage users or change Keycloak settings, access the Keycloak admin console at http://localhost:8080 using:
- Username: admin
- Password: admin