sha256:11711ac9ece50fd201f55a49d1d1e4c9fd14702ebf757ed32bbaff362c149422
Last pushed
7 months by codingjoe
Type
Compose
Manifest digest
sha256:11711ac9ece50fd201f55a49d1d1e4c9fd14702ebf757ed32bbaff362c149422
name: containers
networks:
app:
driver: bridge
internal: true
name: containers_app
app-wan:
driver: bridge
name: containers_app-wan
caddy:
external: true
name: caddy
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:
- PORT=${PORT:-8000}
- REDIS_URL=redis://:${REDIS_PASSWORD}@redis/
image: traefik/whoami:latest
labels:
caddy: ${HOSTNAME:-localhost}
caddy.reverse_proxy: '{{upstreams ${PORT:-8000}}}'
caddy.reverse_proxy.health_headers.X-Forwarded-Host: ${HOSTNAME:-localhost}
caddy.reverse_proxy.health_headers.X-Forwarded-Proto: https
caddy.reverse_proxy.health_uri: /
caddy.reverse_proxy.lb_policy: round_robin
memswap_limit: 1g
networks:
app: null
app-wan: null
caddy: null
stop_grace_period: 1m
volumes:
redis:
name: containers_redis
docker compose -f oci://codingjoe/the-box-redis:0.0.5 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
13615
Last Updated
21 days
Tiny Go webserver that prints OS information and HTTP request to output
Pulls
10M+
Stars
72
Last Updated
about 2 months