19 lines
420 B
YAML
19 lines
420 B
YAML
version: '3.3'
|
|
services:
|
|
redis:
|
|
image: redis/redis-stack
|
|
ports:
|
|
- 6379:6379
|
|
- 8001:8001
|
|
volumes:
|
|
- ./data:/data
|
|
cache:
|
|
image: registry.odit.services/npm-cache-proxy:latest
|
|
# build: .
|
|
ports:
|
|
- 8080:8080
|
|
environment:
|
|
- REDIS_ADDRESS=redis:6379
|
|
- CACHE_TTL=43200 #12h
|
|
- LISTEN_ADDRESS=0.0.0.0:8080
|
|
- UPSTREAM_ADDRESS=https://registry.npmjs.org |