File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ services:
4242 swagger-ui :
4343 image : swaggerapi/swagger-ui:v5.20.1
4444 environment :
45- SWAGGER_JSON_URL : ${SWAGGER_JSON_URL :?}
45+ SWAGGER_JSON_URL : http://localhost:${CADDY_HTTP_PORT :?}/rest/
4646 depends_on :
4747 - postgrest
4848
@@ -56,7 +56,7 @@ services:
5656 swagger-ui :
5757 condition : service_started
5858 ports :
59- - ${CADDY_PORT :?}:80
59+ - ${CADDY_HTTP_PORT :?}:80
6060 - ${CADDY_HTTPS_PORT:?}:443
6161 environment :
6262 CADDY_AUTO_HTTPS : $CADDY_AUTO_HTTPS
Original file line number Diff line number Diff line change @@ -54,9 +54,8 @@ cp example.env .env
5454This ` .env ` file is used to configure:
5555
5656- ** Secrets** – Passwords, keys, etc.
57- - ** Ports** – Configured with env vars so you can adjust the exposed ports
58- (specifically, Caddy's) depending on application (you may bring up multiple
59- for development) or environment.
57+ - ** Ports** – Adjust the exposed ports (specifically, Caddy's) depending on
58+ environment or application (you may bring up multiple for development).
6059
6160> ⚠️ Important: This file is for local development only. Never store real
6261> secrets in version control or production. Use CI/CD environment variables or
Original file line number Diff line number Diff line change @@ -8,10 +8,7 @@ PGPASS=pass
88PGRST_JWT_SECRET = your-ultra-secret-jwt-key-123456 # must be at least 32 chars
99PGRST_AUTHENTICATOR_PASS = pass
1010
11- # Swagger UI
12- SWAGGER_JSON_URL = http://localhost:8000/rest/
13-
1411# Caddy
15- CADDY_PORT = 8000
12+ CADDY_HTTP_PORT = 8000
1613CADDY_HTTPS_PORT = 443
1714CADDY_AUTO_HTTPS = off
You can’t perform that action at this time.
0 commit comments