poc of functions
This commit is contained in:
@@ -1,15 +1,29 @@
|
||||
services:
|
||||
slic3r-api:
|
||||
build:
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: docker/Dockerfile
|
||||
command: /bin/bash -c "cd /src && go run ./cmd"
|
||||
volumes:
|
||||
- ../:/src
|
||||
- ../configs:/configs
|
||||
environment:
|
||||
- PORT=3030
|
||||
- HOST=0.0.0.0
|
||||
- CONFIGS=/configs/
|
||||
- HOST=0.0.0.0
|
||||
- CONFIGS=/configs/
|
||||
- VALKEY_URL=redis://valkey:6379
|
||||
ports:
|
||||
- 3030:3030
|
||||
- 3030:3030
|
||||
depends_on:
|
||||
valkey:
|
||||
condition: service_healthy
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user