40 lines
879 B
YAML
40 lines
879 B
YAML
version: '3.9'
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: ../web
|
|
dockerfile: Dockerfiles/Dockerfile-gpu-cuda126-dev
|
|
container_name: liquid-web-gpu-cuda126-dev
|
|
command: >
|
|
sh -c "python manage.py collectstatic --noinput &&
|
|
daphne -b 0.0.0.0 -p 8000 app.asgi:application"
|
|
volumes:
|
|
- ..:/app
|
|
- ../web/media:/app/media
|
|
- ../web/staticfiles:/app/web/staticfiles
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- redis
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- capabilities: [gpu]
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
container_name: liquid-redis-gpu-cuda126-dev
|
|
volumes:
|
|
- redis_data:/data
|
|
ports:
|
|
- "6378:6378"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 5
|
|
|
|
volumes:
|
|
redis_data: |