This commit is contained in:
Sotig
2026-05-29 21:16:10 +03:00
parent 778380dc35
commit 0c40983293
35 changed files with 4905 additions and 1 deletions

39
docker-compose.yml Normal file
View File

@@ -0,0 +1,39 @@
services:
slic3r-api:
build:
context: ./api
dockerfile: docker/Dockerfile
volumes:
- ../:/src
- ../configs:/configs
environment:
- PORT=3030
- HOST=0.0.0.0
- CONFIGS=/configs/
- VALKEY_URL=redis://valkey:6379
ports:
- 3030:3030
depends_on:
valkey:
condition: service_healthy
slicer-ui:
build:
context: ./ui
dockerfile: Dockerfile
volumes:
- ./ui:/app
- /app/node_modules
ports:
- 5173:5173
valkey:
image: valkey/valkey:8-alpine
command: valkey-server --maxmemory 256mb --maxmemory-policy allkeys-lru --appendonly yes
ports:
- 6379:6379
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5