Ability to log in and out times in to a Postgres database for timesheets.
Docker for Windows or Linux
Execute docker-compose up -d
to run the application and postgres database as containers. A swagger page can be reached from http://localhost/swagger/
The docker-compose.yml
file includes a number of environment variables to configure postgres and the application.
POSTGRES_USER
- username to access the postgres serverPOSTGRES_PASSWORD
- password for the userPOSTGRES_DB
- the initial name of the database. Please leave this asTimeLogger
The volume pgdata
is mapped to the postgres container /var/lib/postgresql/data
folder. The pgdata
is a local volume. To inspect the volumes use command sudo docker volume ls
and sudo docker volume inspect <volume name>
. You can use the mountpoint location to make back ups of the data.
TZ
- local timezoneTimeLogger_ConnectionString__PostgresServer
- postgres server nameTimeLogger_ConnectionString__PostgresUser
- username to access the postgres serverTimeLogger_ConnectionString__PostgresPassword
- password for the userTimeLogger_PublicHolidaySettings__ApiUrl
- url to aus public holiday apiTimeLogger_PublicHolidaySettings__ResourceId
- year id of public holidayTimeLogger_PublicHolidaySettings__State
- australian state filter
- Implement Polly retry policies for added resiliency
- Include an ELK stack in docker-compose to monitor the application
- Nice to have: An added jenkins instance for CI/CD