Sign inSign up

codingjoe/the-box-redis:0.0.3

Manifest digest

sha256:1a28e2fc188afea09ad985aee2e11419705909c9b1ffcf37b842e2c9b9418f18

Last pushed

7 months by codingjoe

Type

Compose

Manifest digest

sha256:1a28e2fc188afea09ad985aee2e11419705909c9b1ffcf37b842e2c9b9418f18

Compose file content

name: containers
networks:
  app:
    external: true
    name: app
  default:
    name: containers_default
  wan:
    external: true
    name: wan
services:
  redis:
    environment:
      REDIS_PASSWORD: ${REDIS_PASSWORD}
    healthcheck:
      interval: 10s
      retries: 5
      start_period: 30s
      test:
        - CMD
        - redis-cli
        - --pass
        - ${REDIS_PASSWORD}
        - ping
      timeout: 10s
    image: redis:8.2.2-alpine
    networks:
      app: null
    restart: unless-stopped
    volumes:
      - source: redis
        target: /data
        type: volume
        volume: {}
  web:
    depends_on:
      redis:
        condition: service_healthy
        required: true
        restart: true
    deploy:
      mode: replicated
      replicas: 2
      resources:
        limits:
          cpus: "0.25"
          memory: 512M
    environment:
      REDIS_URL: redis://:${REDIS_PASSWORD}@redis/
    image: traefik/whoami:latest
    memswap_limit: 1g
    networks:
      default: null
volumes:
  redis:
    name: containers_redis
services:
  redis:
    image: docker.io/library/redis:8.2.2-alpine@sha256:59b6e694653476de2c992937ebe1c64182af4728e54bb49e9b7a6c26614d8933
  web:
    image: docker.io/traefik/whoami:latest@sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab

Docker commands

docker compose -f oci://codingjoe/the-box-redis:0.0.3 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

13616

Last Updated

about 8 hours

Image

Tiny Go webserver that prints OS information and HTTP request to output


Pulls

10M+

Stars

72

Last Updated

about 2 months