Skip to content

Commit

Permalink
📝 document docker usage
Browse files Browse the repository at this point in the history
  • Loading branch information
josuablejeru committed Aug 27, 2023
1 parent 8aae749 commit beaaaeb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,35 @@
this api is a small demo app to see how a stock resupply
Mobile app might work for a small Mom & Pop's shop using Odoo.

![swaggerui](assets/swagger.png)

## Tools used

- Spring Boot
- Postgres
- Swagger UI / OpenAPI 3.0

## Docker Compose
```yaml
services:
postgres:
image: 'postgres:latest'
environment:
- 'POSTGRES_DB=mydatabase'
- 'POSTGRES_PASSWORD=secret'
- 'POSTGRES_USER=myuser'
ports:
- '5432:5432'

backend:
image: ghcr.io/josuablejeru/resupply-api:latest
ports:
- '8080:8080![swagger.png](swagger.png)'
```

## Development

Endpoints:

- [Swagger UI](http://localhost:8080/swagger-ui/index.html)
- [OpenAPI 3.0](http://localhost:8080/v1/docs)
- [OpenAPI 3.0](http://localhost:8080/v1/docs)
Binary file added assets/swagger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit beaaaeb

Please sign in to comment.