add docker support
This commit is contained in:
parent
927387ffb5
commit
c951284efb
3 changed files with 34 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
node_modules
|
||||
npm-debug.log
|
||||
.env
|
||||
Dockerfile
|
||||
.dockerignore
|
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM node:21-bookworm-slim
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD [ "node", "main.js" ]
|
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
version: '3'
|
||||
services:
|
||||
app:
|
||||
image: host/mastodon-to-bluesky:latest
|
||||
container_name: mastodon-to-bluesky
|
||||
environment:
|
||||
MASTODON_INSTANCE: 'https://mastodon.instance'
|
||||
MASTODON_USER: 'username'
|
||||
BLUESKY_ENDPOINT: 'https://bsky.social'
|
||||
BLUESKY_HANDLE: 'USERNAME.bsky.social'
|
||||
BLUESKY_PASSWORD: 'PASSWORD'
|
||||
INTERVAL_MINUTES: 5
|
||||
volumes:
|
||||
- mastodon-to-bluesky:/usr/src/app/data
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
mastodon-to-bluesky:
|
||||
external: true
|
Loading…
Reference in a new issue