- Dockerfile for L1 server/worker - docker-compose.yml with Redis - Environment variables for Redis URL and cache dir 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
59 lines
1.0 KiB
YAML
59 lines
1.0 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
redis:
|
|
image: redis:7-alpine
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- artdag
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
|
|
l1-server:
|
|
build: .
|
|
image: git.rose-ash.com/art-dag/l1-server:latest
|
|
ports:
|
|
- "8100:8100"
|
|
environment:
|
|
- REDIS_URL=redis://redis:6379/5
|
|
volumes:
|
|
- l1_cache:/data/cache
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- artdag
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
|
|
l1-worker:
|
|
build: .
|
|
image: git.rose-ash.com/art-dag/l1-server:latest
|
|
command: celery -A celery_app worker --loglevel=info
|
|
environment:
|
|
- REDIS_URL=redis://redis:6379/5
|
|
volumes:
|
|
- l1_cache:/data/cache
|
|
- effects:/app/effects
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- artdag
|
|
deploy:
|
|
replicas: 2
|
|
restart_policy:
|
|
condition: on-failure
|
|
|
|
volumes:
|
|
redis_data:
|
|
l1_cache:
|
|
effects:
|
|
|
|
networks:
|
|
artdag:
|
|
driver: overlay
|