Skip to content

Commit

Permalink
chore: 🤖 action
Browse files Browse the repository at this point in the history
  • Loading branch information
ZingerLittleBee committed Mar 3, 2024
1 parent 77d2a75 commit d377783
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
strategy:
matrix:
include:
- dockerfile: Dockerfile.hub
tag: serverbee-hub:latest
- dockerfile: Dockerfile.web
tag: serverbee-web:latest
- dockerfile: Dockerfile.interactor
Expand Down
4 changes: 4 additions & 0 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ SALT_ROUNDS=10
# Interactor
AUTH_SERVER_URL="hub:3000/api/user/auth"
SERVICE_URL="hub:3000/api/server"

# Web (optional)
SERVER_HOST="recorder:9528"
SERVER_TOKEN="Your_Server_Token"
4 changes: 2 additions & 2 deletions docker/Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:lts-alpine3.17 as frontend

WORKDIR /usr/src/serverbee

COPY view/ .
COPY ./apps/view/ .

RUN npm install -g pnpm

Expand All @@ -17,7 +17,7 @@ WORKDIR /usr/src/serverbee

COPY . .

COPY --from=frontend /usr/src/serverbee/dist /usr/src/serverbee/view/dist
COPY --from=frontend /usr/src/serverbee/dist /usr/src/serverbee/apps/view/dist

# https://github.com/hound-search/hound/issues/238
RUN apk add --no-cache musl-dev
Expand Down
12 changes: 7 additions & 5 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ services:
build:
context: ../
dockerfile: docker/Dockerfile.web
image: zingerbee/serverbee-recorder:latest
container_name: serverbee-recorder
image: zingerbee/serverbee-web:latest
container_name: serverbee-web
restart: unless-stopped
command: [ "-h", "$SERVER_HOST", "-s", "$SERVER_TOKEN" ]
ports:
- "9527:9527"
environment:
- RUST_LOG=${RUST_LOG}
- SERVER_JWT_SECRET=${SERVER_JWT_SECRET}
- MONGODB_URI=${MONGODB_URI}
- SERVER_HOST=${SERVER_HOST}
- SERVER_TOKEN=${SERVER_TOKEN}
depends_on:
- recorder

0 comments on commit d377783

Please sign in to comment.