Skip to content

Commit e00ca44

Browse files
malbertsclaude
andcommitted
Add make server-up for production stack with Caddy
Replaces the complicated `docker compose --profile server -p neowiki-neowiki --project-directory Docker up -d` invocation in Docker/README.md. The explicit project name was needed so that subsequent `make install-db` etc. would attach to the same containers; wrapping it in a target keeps the project-name plumbing out of the docs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ad13faa commit e00ca44

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Docker/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ To deploy on a server with automatic HTTPS via Caddy:
4040

4141
2. From the extension root, bring up the stack including Caddy:
4242
```bash
43-
docker compose --profile server -p neowiki-neowiki --project-directory Docker up -d
43+
make server-up
4444
```
45-
(Or equivalently `cd Docker && docker compose --profile server up -d` if you do
46-
not need the make-driven project name.)
4745

4846
3. Run the install/load steps from the try-it-out section above.
4947

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ help:
4949

5050
# ---- Lifecycle (host only) ---------------------------------------------------
5151

52-
.PHONY: up dev dev-tools _dev-tools-impl stop down logs ps bash
52+
.PHONY: up server-up dev dev-tools _dev-tools-impl stop down logs ps bash
5353

5454
up: ## Bring up try-it-out stack (no profile, prebuilt image)
5555
$(DC) up -d
5656

57+
server-up: ## Bring up production stack including Caddy (HTTPS on 80/443)
58+
$(DC) --profile server up -d
59+
5760
dev: bootstrap ensure-port ## Bring up dev stack (build image, install, seed, wait for health)
5861
@$(MAKE) --no-print-directory _dev-impl
5962

0 commit comments

Comments
 (0)