Skip to content

Commit

Permalink
readme backend docker
Browse files Browse the repository at this point in the history
  • Loading branch information
worldofjoni committed Jul 28, 2023
1 parent 5223847 commit 950c35a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Application for communication and collective exchange of
menu information in university catering facilities.**

| 🚧 | This project is still in a very early state and WIP! |
| 🚧 | This project is still in a early state and WIP! |
|------------|:-----------------------------------------------------------|


Expand Down
18 changes: 18 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@ Backend application for providing and synchronizing meal plan data of the cantee

[^1]: https://www.sw-ka.de/de/hochschulgastronomie/speiseplan/


## Deploy using Docker
The docker container can be run using
```
docker run \
-p 80:80
-e DATABASE_URL="postgres://<db user>:<db password>@<db host>:<db port>/<db name>"
-e SMTP_SERVER=<domain of mail server> \
-e SMTP_PORT=<port of mail server> \
-e SMTP_USERNAME=<username of mail server> \
-e SMTP_PASSWORD=<password of mail server> \
-e ADMIN_EMAIL=<email address admin notofocations should be send to> \
-e FLICKR_API_KEY=<flickr public api key> \
ghcr.io/kronos-et-al/mensa-app
```

Running the container requires a postgres database, connection to a mail server and a flickr api key.

## Building
- Run `cargo fmt` to format all code files.
- Run `cargo clippy` to check for errors and recommendations.
Expand Down

0 comments on commit 950c35a

Please sign in to comment.