feat: Docker support for L1 server
- 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>
This commit is contained in:
58
docker-compose.yml
Normal file
58
docker-compose.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
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
|
||||
Reference in New Issue
Block a user