Sign inSign up

dcarbonsolutions/dcarbon:v1.0.0

Manifest digest

sha256:17f3b1d58e95a0a6a43059d2dfc4e7093fdba3da34831b6a596311e19f8c1332

Last pushed

17 days by dcarbonsolutions

Type

Compose

Manifest digest

sha256:17f3b1d58e95a0a6a43059d2dfc4e7093fdba3da34831b6a596311e19f8c1332

Compose file content

services:

  angular:
    build:
      context: ./DC
      args:
        BUILD_ENV: ${ENV}
    image: dcarbonsolutions/dcarbon-frontend:1.0.0
    ports:
      - "3000:80"
    restart: always

    
  # 🔹 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

  # 🔹 Django backend (Daphne)
  app:
    build: .
    image: dcarbonsolutions/dcarbon-backend: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

  

  # angular:
  #   build:
  #     context: ../DC
  #     args:
  #       BUILD_ENV: ${ENV}
  #   volumes:
  #     - /var/www/dcarbontracker/dist/browser:/build
  #   command: sh -c "rm -rf /build/* && cp -r /build/* /build/"
  #   restart: "no"




networks:
  dcarbon_net:

volumes:
  redis_data:

Docker commands

docker compose -f oci://dcarbonsolutions/dcarbon:v1.0.0 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

13617

Last Updated

3 days

Image


Pulls

75

Stars

0

Last Updated

17 days

Image


Pulls

60

Stars

0

Last Updated

17 days