housekeeping
This commit is contained in:
1 parent
c7361666f5
commit
e4649f3d76
19 files changed
+5
-72
No files matched your search
@@ -23,8 +23,7 @@ Edit `values.yaml` to update:
|
|||||||
- `server.protocol` (usually http or https)
|
- `server.protocol` (usually http or https)
|
||||||
- **If upgrading**: Migrate persistence settings from flat structure to nested:
|
- **If upgrading**: Migrate persistence settings from flat structure to nested:
|
||||||
- Old: `persistence.mongodbSize` → New: `persistence.mongo.size`
|
- Old: `persistence.mongodbSize` → New: `persistence.mongo.size`
|
||||||
- Old: `persistence.redisSize` → New: `persistence.redis.size`
|
- Add: `persistence.mongo.storageClass` (leave empty for default)
|
||||||
- Add: `persistence.mongo.storageClass` and `persistence.redis.storageClass` (leave empty for default)
|
|
||||||
- Secrets under the `secrets` section (`JWT_SECRET`, email credentials, API keys, etc.) — replace all change_me values
|
- Secrets under the `secrets` section (`JWT_SECRET`, email credentials, API keys, etc.) — replace all change_me values
|
||||||
- **For TLS/HTTPS**: Configure ingress TLS settings (see section below)
|
- **For TLS/HTTPS**: Configure ingress TLS settings (see section below)
|
||||||
|
|
||||||
@@ -32,7 +31,7 @@ Edit `values.yaml` to update:
|
|||||||
```bash
|
```bash
|
||||||
helm install checkmate ./charts/helm/checkmate
|
helm install checkmate ./charts/helm/checkmate
|
||||||
```
|
```
|
||||||
This will deploy the client, server, MongoDB, and Redis components.
|
This will deploy the client, server, and MongoDB components.
|
||||||
|
|
||||||
### 4. Verify the deployment
|
### 4. Verify the deployment
|
||||||
Check pods and services:
|
Check pods and services:
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,11 +0,0 @@
|
|||||||
{{- if .Values.redis.enabled }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: checkmate-redis
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: checkmate-redis
|
|
||||||
ports:
|
|
||||||
- port: {{ .Values.redis.port }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{{- if .Values.redis.enabled }}
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: checkmate-redis
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: checkmate-redis
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: checkmate-redis
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: redis
|
|
||||||
image: {{ .Values.redis.image }}
|
|
||||||
ports:
|
|
||||||
- containerPort: {{ .Values.redis.port }}
|
|
||||||
volumeMounts:
|
|
||||||
- name: redis-data
|
|
||||||
mountPath: /data
|
|
||||||
volumeClaimTemplates:
|
|
||||||
- metadata:
|
|
||||||
name: checkmate-redis-persistent-storage
|
|
||||||
spec:
|
|
||||||
storageClassName: {{ .Values.persistence.redis.storageClass | quote }}
|
|
||||||
accessModes: ["ReadWriteOnce"]
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.redis.size | default "1Gi" | quote }}
|
|
||||||
{{- end }}
|
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -36,11 +36,6 @@ server:
|
|||||||
# a cert-manager issuer annotation (e.g. cert-manager.io/cluster-issuer: "letsencrypt-prod").
|
# a cert-manager issuer annotation (e.g. cert-manager.io/cluster-issuer: "letsencrypt-prod").
|
||||||
# The secret will be automatically created by cert-manager when using the cert-manager.io/cluster-issuer annotation
|
# The secret will be automatically created by cert-manager when using the cert-manager.io/cluster-issuer annotation
|
||||||
|
|
||||||
redis:
|
|
||||||
enabled: false
|
|
||||||
image: redis:7.2
|
|
||||||
port: 6379
|
|
||||||
|
|
||||||
mongodb:
|
mongodb:
|
||||||
image: ghcr.io/bluewave-labs/checkmate-mongo:v3.2.0
|
image: ghcr.io/bluewave-labs/checkmate-mongo:v3.2.0
|
||||||
port: 27017
|
port: 27017
|
||||||
@@ -55,8 +50,6 @@ secrets:
|
|||||||
# PAGESPEED_API_KEY: change_me
|
# PAGESPEED_API_KEY: change_me
|
||||||
DB_CONNECTION_STRING: mongodb://checkmate-mongodb.namespace.svc:27017/uptime_db
|
DB_CONNECTION_STRING: mongodb://checkmate-mongodb.namespace.svc:27017/uptime_db
|
||||||
CLIENT_HOST: change_me
|
CLIENT_HOST: change_me
|
||||||
# REDIS_HOST: redis
|
|
||||||
# REDIS_PORT: "6379"
|
|
||||||
# DB_TYPE: MongoDB
|
# DB_TYPE: MongoDB
|
||||||
# TOKEN_TTL: 99d
|
# TOKEN_TTL: 99d
|
||||||
# REFRESH_TOKEN_TTL: 99d
|
# REFRESH_TOKEN_TTL: 99d
|
||||||
@@ -64,7 +57,4 @@ secrets:
|
|||||||
persistence:
|
persistence:
|
||||||
mongo:
|
mongo:
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
storageClass: ""
|
|
||||||
redis:
|
|
||||||
size: 1Gi
|
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
@@ -2,14 +2,10 @@
|
|||||||
!quickstart.sh
|
!quickstart.sh
|
||||||
!build_images.sh
|
!build_images.sh
|
||||||
dev/mongo/data/*
|
dev/mongo/data/*
|
||||||
dev/redis/data/*
|
|
||||||
dist/mongo/data/*
|
dist/mongo/data/*
|
||||||
dist/redis/data/*
|
|
||||||
prod/mongo/data/*
|
prod/mongo/data/*
|
||||||
prod/redis/data/*
|
|
||||||
dist/docker-compose-test.yaml
|
dist/docker-compose-test.yaml
|
||||||
/dist-mono/mongo/data/*
|
/dist-mono/mongo/data/*
|
||||||
/dist-mono/redis/data/*
|
|
||||||
/dist-arm/mongo/data/*
|
/dist-arm/mongo/data/*
|
||||||
*.env
|
*.env
|
||||||
|
|
||||||
|
|||||||
@@ -12,14 +12,11 @@ set dockerfiles[0]=.\docker\coolify\client.Dockerfile
|
|||||||
set services[1]=bluewaveuptime/uptime_database_mongo
|
set services[1]=bluewaveuptime/uptime_database_mongo
|
||||||
set dockerfiles[1]=.\docker\coolify\mongoDB.Dockerfile
|
set dockerfiles[1]=.\docker\coolify\mongoDB.Dockerfile
|
||||||
|
|
||||||
set services[2]=bluewaveuptime/uptime_redis
|
set services[2]=bluewaveuptime/uptime_server
|
||||||
set dockerfiles[2]=.\docker\coolify\redis.Dockerfile
|
set dockerfiles[2]=.\docker\coolify\server.Dockerfile
|
||||||
|
|
||||||
set services[3]=bluewaveuptime/uptime_server
|
|
||||||
set dockerfiles[3]=.\docker\coolify\server.Dockerfile
|
|
||||||
|
|
||||||
REM Loop through each service and build the corresponding image
|
REM Loop through each service and build the corresponding image
|
||||||
for /L %%i in (0,1,2,3) do (
|
for /L %%i in (0,1,2) do (
|
||||||
set service=!services[%%i]!
|
set service=!services[%%i]!
|
||||||
set dockerfile=!dockerfiles[%%i]!
|
set dockerfile=!dockerfiles[%%i]!
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ cd ../../
|
|||||||
declare -A services=(
|
declare -A services=(
|
||||||
["bluewaveuptime/uptime_client"]="./docker/coolify/client.Dockerfile"
|
["bluewaveuptime/uptime_client"]="./docker/coolify/client.Dockerfile"
|
||||||
["bluewaveuptime/uptime_database_mongo"]="./docker/coolify/mongoDB.Dockerfile"
|
["bluewaveuptime/uptime_database_mongo"]="./docker/coolify/mongoDB.Dockerfile"
|
||||||
["bluewaveuptime/uptime_redis"]="./docker/coolify/redis.Dockerfile"
|
|
||||||
["bluewaveuptime/uptime_server"]="./docker/coolify/server.Dockerfile"
|
["bluewaveuptime/uptime_server"]="./docker/coolify/server.Dockerfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
FROM redis
|
|
||||||
EXPOSE 6379
|
|
||||||
@@ -19,7 +19,6 @@ services:
|
|||||||
# Mount the certs directory (read-only for security)
|
# Mount the certs directory (read-only for security)
|
||||||
- ./certs:/certs:ro
|
- ./certs:/certs:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
|
||||||
- mongodb
|
- mongodb
|
||||||
# Optional: Add healthcheck to ensure the server starts properly
|
# Optional: Add healthcheck to ensure the server starts properly
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ services:
|
|||||||
- UPTIME_APP_API_BASE_URL=http://localhost:52345/api/v1
|
- UPTIME_APP_API_BASE_URL=http://localhost:52345/api/v1
|
||||||
- UPTIME_APP_CLIENT_HOST=http://localhost
|
- UPTIME_APP_CLIENT_HOST=http://localhost
|
||||||
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
|
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
|
||||||
- REDIS_URL=redis://redis:6379
|
|
||||||
- CLIENT_HOST=http://localhost
|
- CLIENT_HOST=http://localhost
|
||||||
- JWT_SECRET=my_secret
|
- JWT_SECRET=my_secret
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in new issue
Block a user