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
10 changes: 9 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

environment:
name: docker
url: https://hub.docker.com/r/cssnr/chat-server
url: https://hub.docker.com/r/${{ github.repository }}

steps:
- name: "Checkout"
Expand Down Expand Up @@ -132,6 +132,14 @@ jobs:
build-args: |
VERSION=${{ github.ref_name }}

- name: "Docker Hub Description"
uses: peter-evans/dockerhub-description@v5
continue-on-error: true
with:
username: ${{ vars.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASS }}
repository: ${{ github.repository }}

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/chat-server?logo=github)](https://github.com/cssnr/chat-server/releases/latest)
[![Image Latest](https://badges.cssnr.com/ghcr/tags/cssnr/chat-server/latest)](https://github.com/cssnr/chat-server/pkgs/container/chat-server)
[![Image Size](https://badges.cssnr.com/ghcr/size/cssnr/chat-server)](https://github.com/cssnr/chat-server/pkgs/container/chat-server)
[![GHCR Latest](https://badges.cssnr.com/ghcr/tags/cssnr/chat-server/latest?label=ghcr)](https://github.com/cssnr/chat-server/pkgs/container/chat-server)
[![Docker Hub Latest](https://img.shields.io/docker/v/cssnr/chat-server?sort=semver&logo=docker&logoColor=white&label=hub)](https://hub.docker.com/r/cssnr/chat-server)
[![GHCR Size](https://badges.cssnr.com/ghcr/size/cssnr/chat-server?label=ghcr)](https://github.com/cssnr/chat-server/pkgs/container/chat-server)
[![Docker Hub Size](https://img.shields.io/docker/image-size/cssnr/chat-server?logo=docker&logoColor=white&label=hub)](https://hub.docker.com/r/cssnr/chat-server)
[![Deployment Docker](https://img.shields.io/github/deployments/cssnr/chat-server/docker?logo=docker&logoColor=white&label=docker)](https://github.com/cssnr/chat-server/deployments/docker)
[![Workflow Release](https://img.shields.io/github/actions/workflow/status/cssnr/chat-server/release.yaml?logo=norton&logoColor=white&label=release)](https://github.com/cssnr/chat-server/actions/workflows/release.yaml)
[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/cssnr/chat-server/lint.yaml?logo=norton&logoColor=white&label=lint)](https://github.com/cssnr/chat-server/actions/workflows/lint.yaml)
Expand Down Expand Up @@ -64,20 +66,18 @@ Built with the [AI SDK](https://ai-sdk.dev/).
With Docker.

```shell
docker run --rm -p 80:3000 ghcr.io/cssnr/chat-server:latest
docker run --rm cssnr/chat-server:latest
```

With Docker Compose.

```yaml
services:
chat:
image: ghcr.io/cssnr/chat-server:latest
image: cssnr/chat-server:latest
environment:
MODEL: 'gemini-2.5-flash'
GOOGLE_GENERATIVE_AI_API_KEY: 'xxx'
ports:
- '80:3000'
```

With Node.
Expand All @@ -87,7 +87,7 @@ npm i
npm start
```

_Note: you will need to export or add your environment variables to the `settings.env` file._
_Note: you will need to export your environment variables or set them in the `settings.env` file._

For a Docker Swarm + Traefik + Basic Auth example see the [docker-compose-swarm.yaml](https://github.com/cssnr/chat-server/blob/master/docker-compose-swarm.yaml).

Expand Down
2 changes: 1 addition & 1 deletion docker-compose-swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
- traefik-public

app:
image: ghcr.io/cssnr/chat-server:${VERSION:-latest}
image: cssnr/chat-server:${VERSION:-latest}
environment:
VERSION: ${VERSION}
STACK_NAME: ${STACK_NAME}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- "${PORT:-80}:80"

app:
image: ghcr.io/cssnr/chat-server:latest
image: cssnr/chat-server:latest
env_file: settings.env
#healthcheck:
# test: ["CMD-SHELL", "curl -sf localhost:3000/app-health-check || exit 1"]
Expand Down
2 changes: 1 addition & 1 deletion render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
plan: free
runtime: image
image:
url: ghcr.io/cssnr/chat-server:latest
url: cssnr/chat-server:latest
dockerCommand: npm start
#healthCheckPath: /app-health-check
envVars:
Expand Down