Skip to content

Commit 29a89ed

Browse files
committed
feat: make v2.x default kuzzle choice when creating new env
1 parent a6bf8c6 commit 29a89ed

File tree

5 files changed

+2665
-1987
lines changed

5 files changed

+2665
-1987
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build step
2-
FROM node:20 AS builder
2+
FROM node:22-bookworm-slim AS builder
33

44
WORKDIR /app
55
COPY . .
@@ -8,5 +8,5 @@ RUN npm ci
88
RUN npm run build
99

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

docker-compose.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
services:
22
kuzzle:
3-
image: kuzzleio/kuzzle:2.29.1
3+
image: kuzzleio/kuzzle:2
44
ports:
5-
- "7512:7512"
5+
- 7512:7512
66
depends_on:
77
redis:
88
condition: service_healthy
@@ -15,25 +15,38 @@ services:
1515
- kuzzle_services__memoryStorage__node__host=redis
1616
- DEBUG=${DEBUG:-none}
1717
healthcheck:
18-
test: ["CMD", "curl", "-f", "http://kuzzle:7512/_healthcheck"]
18+
test: ['CMD', 'curl', '-f', 'http://kuzzle:7512/_healthcheck']
1919
timeout: 5s
2020
interval: 5s
2121
retries: 30
2222

23+
web:
24+
image: kuzzleio/kuzzle-runner:22
25+
command: npm run dev --prefix /var/app/ -- --host
26+
ports:
27+
- 8080:8080
28+
depends_on:
29+
kuzzle:
30+
condition: service_healthy
31+
volumes:
32+
- .:/var/app
33+
2334
redis:
2435
image: redis:5
36+
ports:
37+
- 6379:6379
2538
healthcheck:
26-
test: ["CMD", "redis-cli", "ping"]
39+
test: ['CMD', 'redis-cli', 'ping']
2740
interval: 5s
2841
timeout: 5s
2942
retries: 30
3043

3144
elasticsearch:
32-
image: elasticsearch:7.17.24
33-
environment:
34-
- discovery.type=single-node
45+
image: kuzzleio/elasticsearch:7
46+
ports:
47+
- 9200:9200
3548
healthcheck:
36-
test: ["CMD", "curl", "-f", "http://elasticsearch:9200"]
49+
test: ['CMD', 'curl', '-f', 'http://elasticsearch:9200']
3750
interval: 5s
3851
timeout: 5s
3952
retries: 30

0 commit comments

Comments
 (0)