-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
begin nocapd container, fix logger pkg, other minor fixes
- Loading branch information
Showing
7 changed files
with
79 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ yarn.lock | |
*.wasm | ||
**/dist | ||
yarn-error.log | ||
.env | ||
.env* | ||
!*.sample | ||
.lmdb | ||
.redis | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
config.y*ml | ||
yarn.lock | ||
.events | ||
.events | ||
.env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Use an official Node.js runtime as a parent image, based on Alpine | ||
FROM node:20-alpine | ||
|
||
RUN mkdir /app | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the current directory contents into the container at /usr/src/app | ||
COPY . . | ||
|
||
# RUN echo "registry=http://host.docker.internal:4873" > .npmrc | ||
|
||
# Install any needed packages specified in package.json | ||
RUN yarn install --network-timeout 1000000 | ||
|
||
# Make port 3000 available to the world outside this container | ||
# EXPOSE 3000 | ||
|
||
# Run the app when the container launches | ||
CMD yarn launch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,47 @@ | ||
version: "3" | ||
services: | ||
# nocapd: | ||
# container_name: trawler | ||
# restart: unless-stopped | ||
# build: . | ||
# volumes: | ||
# - ./nocapd.config.yaml:/etc/@nostrwatch/nocapd/config.yaml | ||
# - ./.lmdb:/app/.lmdb | ||
# environment: | ||
# DOCKER: 'yes' | ||
# env_file: .env | ||
cache: | ||
image: redis:latest | ||
restart: always | ||
ports: | ||
- '6379:6379' | ||
volumes: | ||
- ./.redis:/.data:rw | ||
env_file: .env | ||
command: redis-server --loglevel $REDIS_LOGLEVEL | ||
nocapd: | ||
container_name: nocapd | ||
restart: unless-stopped | ||
build: | ||
context: . | ||
args: | ||
BUILDKIT_INLINE_CACHE: 0 | ||
dockerfile: Dockerfile | ||
volumes: | ||
- /Users/sandwich/Develop/nostr-watch/.lmdb:/app/.lmdb:rw | ||
- ./.env.docker:/app/.env:ro | ||
- ./config.yaml:/app/config.yaml:ro | ||
environment: | ||
DOCKER: 'yes' | ||
env_file: .env.docker | ||
# depends_on: | ||
# - cache | ||
networks: | ||
- trawlernet | ||
# cache: | ||
# image: redis:latest | ||
# restart: always | ||
# ports: | ||
# - '6379:6379' | ||
# volumes: | ||
# - ./.redis:/.data:rw | ||
# env_file: .env.docker | ||
# command: redis-server | ||
# healthcheck: | ||
# test: ["CMD", "redis-cli", "ping"] | ||
# interval: 10s | ||
# timeout: 5s | ||
# retries: 3 | ||
# networks: | ||
# - nocapdnet | ||
|
||
volumes: | ||
lmdb: | ||
driver: local | ||
cache: | ||
driver: local | ||
cache: | ||
driver: local | ||
|
||
networks: | ||
trawlernet: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "@nostrwatch/logger", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"type": "module", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"logger": "0.0.1" | ||
"logging": "^3.3.0" | ||
} | ||
} | ||
} |