refactor: standalone docker-compose for L1 celery stack
This commit is contained in:
@@ -6,43 +6,42 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
networks:
|
networks:
|
||||||
- artdag
|
- celery
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
l1-server:
|
l1-server:
|
||||||
build: .
|
|
||||||
image: git.rose-ash.com/art-dag/l1-server:latest
|
image: git.rose-ash.com/art-dag/l1-server:latest
|
||||||
ports:
|
|
||||||
- "8100:8100"
|
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://redis:6379/5
|
- REDIS_URL=redis://redis:6379/5
|
||||||
|
- CACHE_DIR=/data/cache
|
||||||
volumes:
|
volumes:
|
||||||
- l1_cache:/data/cache
|
- l1_cache:/data/cache
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
networks:
|
networks:
|
||||||
- artdag
|
- celery
|
||||||
|
- externalnet
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
l1-worker:
|
l1-worker:
|
||||||
build: .
|
|
||||||
image: git.rose-ash.com/art-dag/l1-server:latest
|
image: git.rose-ash.com/art-dag/l1-server:latest
|
||||||
command: celery -A celery_app worker --loglevel=info
|
command: celery -A celery_app worker --loglevel=info
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://redis:6379/5
|
- REDIS_URL=redis://redis:6379/5
|
||||||
|
- CACHE_DIR=/data/cache
|
||||||
|
- C_FORCE_ROOT=true
|
||||||
volumes:
|
volumes:
|
||||||
- l1_cache:/data/cache
|
- l1_cache:/data/cache
|
||||||
- effects:/app/effects
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
networks:
|
networks:
|
||||||
- artdag
|
- celery
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
restart_policy:
|
restart_policy:
|
||||||
@@ -51,8 +50,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
redis_data:
|
redis_data:
|
||||||
l1_cache:
|
l1_cache:
|
||||||
effects:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
artdag:
|
celery:
|
||||||
driver: overlay
|
driver: overlay
|
||||||
|
externalnet:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user