Fixed ratelimiting and added docker support
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
{
|
||||
"name": "binit.app Dev Container",
|
||||
"image": "mcr.microsoft.com/devcontainers/javascript-node:24-bookworm",
|
||||
"forwardPorts": [3000],
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"label": "App",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "npm install"
|
||||
}
|
||||
"name": "Minipaste Dev Container",
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "app",
|
||||
"workspaceFolder": "/workspace",
|
||||
"forwardPorts": [3000, 9000, 9001],
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"label": "App",
|
||||
"onAutoForward": "notify"
|
||||
},
|
||||
"9000": { "label": "MinIO S3 API" },
|
||||
"9001": { "label": "MinIO Console" }
|
||||
},
|
||||
"postCreateCommand": "npm install"
|
||||
}
|
||||
25
.devcontainer/docker-compose.yml
Normal file
25
.devcontainer/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: mcr.microsoft.com/devcontainers/javascript-node:24-bookworm
|
||||
volumes:
|
||||
- ..:/workspace:cached
|
||||
command: sleep infinity
|
||||
depends_on:
|
||||
- minio
|
||||
|
||||
minio:
|
||||
image: minio/minio
|
||||
command: server /data --console-address ":9001"
|
||||
environment:
|
||||
MINIO_ROOT_USER: minioadmin
|
||||
MINIO_ROOT_PASSWORD: minioadmin
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- minio-data:/data
|
||||
|
||||
volumes:
|
||||
minio-data:
|
||||
Reference in New Issue
Block a user