diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..c83c545 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,19 @@ +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 \ No newline at end of file