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
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build step
FROM node:20 AS builder
FROM node:22-bookworm-slim AS builder

WORKDIR /app
COPY . .
Expand All @@ -8,5 +8,7 @@ RUN npm ci
RUN npm run build

# Server step
FROM nginx:stable-alpine AS production-stage
FROM nginx:1.27 AS production-stage
COPY --from=builder /app/dist /usr/share/nginx/html

EXPOSE 80
26 changes: 18 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
services:
web:
image: kuzzleio/kuzzle-runner:22
command: npm run dev --prefix /var/app/ -- --host
ports:
- 8080:8080
volumes:
- .:/var/app

kuzzle:
image: kuzzleio/kuzzle:2.29.1
image: kuzzleio/kuzzle:2
ports:
- "7512:7512"
- 7512:7512
depends_on:
redis:
condition: service_healthy
Expand All @@ -15,25 +23,27 @@ services:
- kuzzle_services__memoryStorage__node__host=redis
- DEBUG=${DEBUG:-none}
healthcheck:
test: ["CMD", "curl", "-f", "http://kuzzle:7512/_healthcheck"]
test: ['CMD', 'curl', '-f', 'http://kuzzle:7512/_healthcheck']
timeout: 5s
interval: 5s
retries: 30

redis:
image: redis:5
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 5s
retries: 30

elasticsearch:
image: elasticsearch:7.17.24
environment:
- discovery.type=single-node
image: kuzzleio/elasticsearch:7
ports:
- 9200:9200
healthcheck:
test: ["CMD", "curl", "-f", "http://elasticsearch:9200"]
test: ['CMD', 'curl', '-f', 'http://elasticsearch:9200']
interval: 5s
timeout: 5s
retries: 30
Loading
Loading