Sign inSign up

dcarbonsolutions/dcarbon-onpremise-compose:1.0.5

Manifest digest

sha256:7278e636fb815db121c2353bdb4b64a71b9db4cd78e13221ba01fbf8697a2f31

Last pushed

8 days by dcarbonsolutions

Type

Compose

Manifest digest

sha256:7278e636fb815db121c2353bdb4b64a71b9db4cd78e13221ba01fbf8697a2f31

Compose file content

services:
  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.1
    command: >
      sh -c "python manage.py collectstatic --noinput &&
             sleep 10 &&
             daphne -b 0.0.0.0 -p 8000 main.asgi:application"
    ports:
      - "8000:8000"
    volumes:
      - ../license_keys:/license_keys:ro
    networks:
      - dcarbon_net
    environment:
      DJANGO_SETTINGS_MODULE: main.settings.onpremise
      LICENSE_FILE: /license_keys/license.json
      LICENSE_PUBLIC_KEY: /license_keys/license_public.pem
    depends_on:
      redis:
        condition: service_healthy

networks:
  dcarbon_net:

volumes:
  redis_data:

Docker commands

docker compose -f oci://dcarbonsolutions/dcarbon-onpremise-compose:1.0.5 up

Use the above command to pull and run the Compose file. Learn more⁠.

Images used

Image + 1 more

Redis is the world’s fastest data platform for caching, vector search, and NoSQL databases.


Pulls

1B+

Stars

13627

Last Updated

about 4 hours

Image


Pulls

159

Stars

0

Last Updated

8 days