sha256:c1ece4afe27218ee8ddafbaa65e80dbdf99bc85dfa214495ee02f2eedf08f764
Last pushed
3 days by dcarbonsolutions
Type
Compose
Manifest digest
sha256:c1ece4afe27218ee8ddafbaa65e80dbdf99bc85dfa214495ee02f2eedf08f764
services:
# 🔹 Redis service for Django Channels
redis:
image: redis:7-alpine
restart: always
expose:
- "6379"
volumes:
- redis_data:/data
networks:
- dcarbon_net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
app:
build: .
image: dcarbonsolutions/dcarbon-onpremise:1.0.0
command: sh -c "sleep 10 && daphne -b 0.0.0.0 -p 8000 main.asgi:application"
ports:
- "8000:8000"
networks:
- dcarbon_net
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
depends_on:
redis:
condition: service_healthy
networks:
dcarbon_net:
volumes:
redis_data:
docker compose -f oci://dcarbonsolutions/dcarbon-onpremise-compose:1.0.1 upUse the above command to pull and run the Compose file. Learn more.
Redis is the world’s fastest data platform for caching, vector search, and NoSQL databases.
Pulls
1B+
Stars
13619
Last Updated
4 days