Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build: build-app build-db build-validate

## build-app: compile the HTTP API server
build-app:
go build -o $(BIN)/app cmd/app/main.go
go build -o $(BIN)/ignis cmd/ignis/main.go

## build-db: compile the database loader (destructive — drops and recreates tables)
build-db:
Expand All @@ -20,7 +20,7 @@ build-validate:

## run: build and start the HTTP API server
run: build-app
./$(BIN)/app
./$(BIN)/ignis

## create-db: create the database if absent (or drop only the tabula schema if it exists), then populate via build_db
create-db: build-db
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cp .env.example .env
## Build

```bash
go build -o bin/app cmd/app/main.go
go build -o bin/ignis cmd/ignis/main.go
go build -o bin/build_db cmd/build_db/main.go
go build -o bin/validate cmd/validate/main.go
```
Expand All @@ -53,7 +53,7 @@ Loads the TABULA workbook into PostgreSQL. This is destructive: it drops and rec
## Run the API

```bash
./bin/app # starts on :8080
./bin/ignis # starts on :8080
```

## Validate
Expand Down
2 changes: 1 addition & 1 deletion documentation/content/07-deployment-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ignis runs as three containers, defined in `environment/docker-compose.yml`. The

1. **ignis-reverse-proxy**: Caddy, from the `caddy:2.11-alpine` image. The only container that publishes a host port. Every request passes through it first.

2. **ignis-app**: the `bin/app` binary, built from `environment/Dockerfile`. Listens on the internal port (default 8080), publishes no host port, and reaches the database at `ignis-db`.
2. **ignis-app**: the `bin/ignis` binary, built from `environment/Dockerfile`. Listens on the internal port (default 8080), publishes no host port, and reaches the database at `ignis-db`.

3. **ignis-db**: PostgreSQL, from `postgres:17-alpine`. Publishes no host port. Its data lives in a named volume (`ignis-db-data`) that survives `docker compose down`/`up`, but not `down -v`.

Expand Down
2 changes: 1 addition & 1 deletion environment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV PATH="${GOROOT}/bin:${PATH}"
WORKDIR /app
COPY . .
RUN go mod tidy \
&& go build -o bin/app cmd/app/main.go \
&& go build -o bin/ignis cmd/ignis/main.go \
&& go build -o bin/build_db cmd/build_db/main.go \
&& go build -o bin/validate cmd/validate/main.go

Expand Down
2 changes: 1 addition & 1 deletion environment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ services:
condition: service_healthy
# No `ports:` mapping here on purpose — the app is not reachable from the
# host directly. Only the reverse proxy is exposed; everyone else must go through it.
command: ./bin/app # run the server directly (was: interactive dev shell)
command: ./bin/ignis # run the server directly (was: interactive dev shell)
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost:$$APP_PORT/health"]
interval: 5s
Expand Down
Loading