Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
abbradar committed Sep 28, 2024
1 parent e1f6a36 commit 0310959
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Ozma

## How to run

To run the development environment with all the required services:
1. Copy `env.dev.example` to `.env`;
2. Run `docker compose up`.

This starts a development server at https://localhost:9080. The Keycloak admin user (when opening Keycloak) is `admin` and the password is `admin`. The database admin user (when opening ozma) is `[email protected]` and the password is `admin`. You will be required to reset the password for the admin user the first time you log in.

To run it in the production environment:
1. Copy `env.production.example` to `.env` and modify it as fit;
2. Run `docker compose up -d`.

This starts a production server at :80 and :443 ports. Be sure to open the ports in your firewall or router, and to point your domain to the server. HTTPS certificates are automatically generated using Let's Encrypt. The Keycloak admin user (when opening Keycloak) is `admin` and the password is set in the environment file. The database admin user (when opening ozma) is set in the environment file, and the password is `admin`. You will be required to reset the password for the admin user the first time you log in.

URLs of interest (for production, replace `http://localhost:9080` with your domain):
* http://localhost:9080/ — the application
* http://localhost:9080/auth/ - Keycloak admin interface.
* http://localhost:9080/report-generator/admin/ozma/ - Report generator admin interface.

0 comments on commit 0310959

Please sign in to comment.