You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add nginx service as second docker-compose stack (#503)
* add nginx service to docker-compose, proxy pgstac and sqlalchemy apps
* Update docker-compose.yml
Co-authored-by: Christian Wygoda <[email protected]>
* feat: add nginx proxy in own docker-compose file
Includes a Makefile rule to run it, and some documentation in README.md. Also
adds a markdownlint silencer and one or two touchups to the whitespace.
* Update changelog
---------
Co-authored-by: Christian Wygoda <[email protected]>
Co-authored-by: Pete Gadomski <[email protected]>
Co-authored-by: Nathan Zimmerman <[email protected]>
Copy file name to clipboardExpand all lines: CHANGES.md
+1
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
### Added
6
6
7
+
* Nginx service as second docker-compose stack to demonstrate proxy ([#503](https://github.com/stac-utils/stac-fastapi/pull/503))
7
8
* Validation checks in CI using [stac-api-validator](github.com/stac-utils/stac-api-validator) ([#508](https://github.com/stac-utils/stac-fastapi/pull/508))
8
9
* Required links to the sqlalchemy ItemCollection endpoint ([#508](https://github.com/stac-utils/stac-fastapi/pull/508))
9
10
* Publication of docker images to GHCR ([#525](https://github.com/stac-utils/stac-fastapi/pull/525))
<palign="center">FastAPI implemention of the STAC API spec.</p>
@@ -101,7 +103,23 @@ The application will be started on <http://localhost:8080>.
101
103
By default, the apps are run with uvicorn hot-reloading enabled. This can be turned off by changing the value
102
104
of the `RELOAD` env var in docker-compose.yml to `false`.
103
105
104
-
#### Note to Docker for Windows users
106
+
### nginx proxy
107
+
108
+
This repo includes an example nginx proxy service.
109
+
To start:
110
+
111
+
```shell
112
+
make docker-run-nginx-proxy
113
+
```
114
+
115
+
The proxy will be started on <http://localhost>, with the pgstac app available at <http://localhost/api/v1/pgstac/> and the sqlalchemy app at <http://localhost/api/v1/sqlalchemy/>.
116
+
If you need to customize the proxy port, use the `STAC_FASTAPI_NGINX_PORT` environment variable:
117
+
118
+
```shell
119
+
STAC_FASTAPI_NGINX_PORT=7822 make docker-run-nginx-proxy
120
+
```
121
+
122
+
### Note to Docker for Windows users
105
123
106
124
You'll need to enable experimental features on Docker for Windows in order to run the docker-compose,
107
125
due to the "--platform" flag that is required to allow the project to run on some Apple architectures.
0 commit comments