Skip to content

Commit add637e

Browse files
committed
standalone(3.0.7): fix #245
1 parent a0690e7 commit add637e

5 files changed

Lines changed: 78 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ target/
9797
standalone/test-local.sh
9898
standalone/public/tester.html
9999
standalone/data/
100-
trycap
100+
trycap
101+
.claude

standalone/.dockerignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
node_modules
2+
docker-compose*
3+
.dockerignore
4+
.git
5+
.gitignore
6+
README.md
7+
LICENSE
8+
.vscode
9+
Makefile
10+
helm-charts
11+
.env
12+
.editorconfig
13+
.idea
14+
coverage*
15+
.data
16+
data

standalone/docker-compose.dev.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
services:
2+
cap:
3+
build: .
4+
develop:
5+
watch:
6+
- action: rebuild
7+
path: .
8+
ports:
9+
- "3067:3000"
10+
environment:
11+
ADMIN_KEY: test_admin_key_local_dev
12+
REDIS_URL: redis://valkey:6379
13+
SHOW_ERRORS: "true"
14+
HIDE_RATELIMIT_IP_WARNING: "true"
15+
depends_on:
16+
valkey:
17+
condition: service_healthy
18+
restart: unless-stopped
19+
20+
valkey:
21+
image: valkey/valkey:9-alpine
22+
ports:
23+
- "6379:6379"
24+
command: valkey-server --save 60 1 --loglevel notice --maxmemory-policy noeviction
25+
healthcheck:
26+
test: ["CMD", "valkey-cli", "ping"]
27+
interval: 5s
28+
timeout: 3s
29+
retries: 5
30+
restart: unless-stopped

standalone/docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
services:
2+
cap:
3+
image: tiago2/cap:latest
4+
container_name: cap
5+
ports:
6+
- "3000:3000"
7+
environment:
8+
ADMIN_KEY: your_secret_password
9+
REDIS_URL: redis://valkey:6379
10+
depends_on:
11+
valkey:
12+
condition: service_healthy
13+
restart: unless-stopped
14+
15+
valkey:
16+
image: valkey/valkey:9-alpine
17+
container_name: cap-valkey
18+
volumes:
19+
- valkey-data:/data
20+
command: valkey-server --save 60 1 --loglevel warning --maxmemory-policy noeviction
21+
healthcheck:
22+
test: ["CMD", "valkey-cli", "ping"]
23+
interval: 5s
24+
timeout: 3s
25+
retries: 5
26+
restart: unless-stopped
27+
28+
volumes:
29+
valkey-data:

standalone/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cap-standalone",
3-
"version": "3.0.6",
3+
"version": "3.0.7",
44
"keywords": [
55
"algorithm",
66
"anti-abuse",

0 commit comments

Comments
 (0)