cleanup
This commit is contained in:
parent
1debe0baf4
commit
51c4d03870
3 changed files with 44 additions and 1 deletions
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# Use Node.js 18 as the base image
|
||||||
|
FROM node:18-alpine
|
||||||
|
|
||||||
|
# Create the working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy package.json and package-lock.json first for efficient caching
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# Copy the rest of the project files
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Compile TypeScript (assuming tsc is installed as a dev dependency)
|
||||||
|
RUN npm run tsc
|
||||||
|
|
||||||
|
# Expose the port for your application (replace 3000 with the correct port)
|
||||||
|
EXPOSE 21000
|
||||||
|
|
||||||
|
# Set environment variables
|
||||||
|
ENV LND_ADDRESS=127.0.0.1:10009
|
||||||
|
ENV LND_CERT_PATH=/root/.lnd/tls.cert
|
||||||
|
ENV LND_MACAROON_PATH=/root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
|
||||||
|
ENV DATABASE_FILE=db.sqlite
|
||||||
|
|
||||||
|
# Start the application
|
||||||
|
CMD ["node", "build/src/index.js"]
|
||||||
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
lightning-pub:
|
||||||
|
image: lightning-pub
|
||||||
|
volumes:
|
||||||
|
- ./data:/app/data # Mount a volume to persist db.sqlite
|
||||||
|
environment:
|
||||||
|
# Provide actual LND container name or network details for LND_ADDRESS
|
||||||
|
LND_ADDRESS: lnd:10009
|
||||||
|
depends_on:
|
||||||
|
- lnd
|
||||||
|
|
||||||
|
lnd:
|
||||||
|
# ... configuration for the LND container
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"include":["**/*.spec.ts"]}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue