generated from bisco/codex-bootstrap
chore: rename nginx service to proxy
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ Configure the canonical test command for this repository:
|
||||
docker compose run --rm backend python manage.py test
|
||||
docker compose run --rm frontend npm run check
|
||||
docker compose run --rm frontend npm run build
|
||||
docker compose run --rm nginx nginx -t
|
||||
docker compose run --rm proxy nginx -t
|
||||
docker compose config --quiet
|
||||
```
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ The standard published-page endpoint is also available at `/api/v2/pages/`.
|
||||
|
||||
```bash
|
||||
# Follow application logs
|
||||
docker compose logs -f postgres backend frontend nginx
|
||||
docker compose logs -f postgres backend frontend proxy
|
||||
|
||||
# Run database migrations
|
||||
docker compose exec backend python manage.py migrate
|
||||
@@ -104,7 +104,7 @@ docker compose exec backend python manage.py migrate
|
||||
docker compose run --rm backend python manage.py test
|
||||
docker compose run --rm frontend npm run check
|
||||
docker compose run --rm frontend npm run build
|
||||
docker compose run --rm nginx nginx -t
|
||||
docker compose run --rm proxy nginx -t
|
||||
docker compose config --quiet
|
||||
|
||||
# Stop the stack without deleting content
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ services:
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
nginx:
|
||||
proxy:
|
||||
image: nginx:1.30.0-alpine
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
```bash
|
||||
docker compose up --build -d
|
||||
docker compose ps
|
||||
docker compose logs -f nginx backend frontend postgres
|
||||
docker compose logs -f proxy backend frontend postgres
|
||||
docker compose down
|
||||
```
|
||||
|
||||
|
||||
+2
-2
@@ -33,9 +33,9 @@
|
||||
|
||||
1. Confirm the request host is exactly `azionelab.org`; unknown hosts intentionally
|
||||
receive 404.
|
||||
2. Run `docker compose exec nginx nginx -t`.
|
||||
2. Run `docker compose exec proxy nginx -t`.
|
||||
3. Check `docker compose ps` and verify both backend and frontend are healthy.
|
||||
4. Inspect `docker compose logs --tail=200 nginx backend frontend`.
|
||||
4. Inspect `docker compose logs --tail=200 proxy backend frontend`.
|
||||
5. Verify local DNS or `/etc/hosts` maps `azionelab.org` to the proxy address.
|
||||
|
||||
## Rollback
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ All tests should run inside Docker containers.
|
||||
docker compose run --rm backend python manage.py test
|
||||
docker compose run --rm frontend npm run check
|
||||
docker compose run --rm frontend npm run build
|
||||
docker compose run --rm nginx nginx -t
|
||||
docker compose run --rm proxy nginx -t
|
||||
docker compose config --quiet
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user