Skip to content

infra: add Docker, docker-compose, and GitHub Actions CI/CD#9

Merged
ARCoder181105 merged 1 commit into
mainfrom
infra/docker-ci
Apr 5, 2026
Merged

infra: add Docker, docker-compose, and GitHub Actions CI/CD#9
ARCoder181105 merged 1 commit into
mainfrom
infra/docker-ci

Conversation

@ARCoder181105
Copy link
Copy Markdown
Owner

  • server/Dockerfile: multi-stage Go build (golang:1.22-alpine -> alpine:3.19)
  • web/Dockerfile: multi-stage Next.js build with standalone output
  • docker-compose.yml: 3-node Raft cluster + Next.js dashboard
  • .github/workflows/ci.yml: go test -race on every push/PR to main
  • .github/workflows/docker-publish.yml: push to Docker Hub on merge to main
  • Makefile (root): docker-up/down/logs/ps convenience targets
  • server/cmd/server/main.go: replace hardcoded Raft config with env vars (NODE_ID, HTTP_ADDR, TCP_ADDR, PEERS, DATA_DIR — all have safe defaults)
  • web/next.config.ts: enable standalone output for Docker runner stage

- server/Dockerfile: multi-stage Go build (golang:1.22-alpine -> alpine:3.19)
- web/Dockerfile: multi-stage Next.js build with standalone output
- docker-compose.yml: 3-node Raft cluster + Next.js dashboard
- .github/workflows/ci.yml: go test -race on every push/PR to main
- .github/workflows/docker-publish.yml: push to Docker Hub on merge to main
- Makefile (root): docker-up/down/logs/ps convenience targets
- server/cmd/server/main.go: replace hardcoded Raft config with env vars
  (NODE_ID, HTTP_ADDR, TCP_ADDR, PEERS, DATA_DIR — all have safe defaults)
- web/next.config.ts: enable standalone output for Docker runner stage
@ARCoder181105 ARCoder181105 merged commit 42750a7 into main Apr 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant