Add example how to use the embedded container

This commit is contained in:
Andreas Svanberg 2025-03-26 16:42:04 +01:00
parent 800748094e
commit ed0c510638
Signed by: ansv7779
GPG Key ID: 729B051CFFD42F92

@ -1,3 +1,18 @@
## Using as an embedded Docker Compose service
```
services:
oauth2:
build: https://gitea.dsv.su.se/DMC/oauth2-authorization-server.git
restart: unless-stopped
ports:
- "<host_port>:8080"
environment:
CLIENT_ID=awesome-app
CLIENT_SECRET=p4ssw0rd
CLIENT_REDIRECT_URI=http://localhost/oauth2/callback
```
## Development
### Prerequisites
- JDK 17 (or later)