https://github.com/pkoretic/qt-docker-caddy
https://github.com/pkoretic/qt-docker-caddy
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pkoretic/qt-docker-caddy
- Owner: pkoretic
- Created: 2022-12-11T18:58:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-16T22:07:15.000Z (over 3 years ago)
- Last Synced: 2026-04-26T01:09:36.866Z (3 months ago)
- Language: C++
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTPS REST API
An example HTTPS REST API built with Qt framework, Caddy enterprise HTTPS server and Docker
containers - [see linked
article](https://medium.com/@petar.koretic/building-rest-apis-with-qt-docker-and-caddy-b669e36b96c5)

## Configuration
The solution is built with Docker compose so check `compose.yml`.
Exposed HTTPS port can be overriden with `HTTPS_PORT` enviroment variable.
## Build & Run
First build the docker image for HTTP REST API with QT.
`docker build -t qtdockercaddy .`
Then bring the whole stack up with Caddy HTTPS reverse proxy included.
> Make sure to create external volume for caddy if not existing:
`docker volume create caddy_data`
`docker compose up`
This will run the HTTPS REST API with self signed certificate at https://localhost:8181.