fe-middleware/compose.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2024-03-28 08:29:33 +00:00
services:
mongodb:
image: mongo:bionic
container_name: mongodb
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: bot
volumes:
- mongodb_data:/data/db
bot-api:
image: git.fai.st/fedi-image-bot/bot-api:latest
container_name: bot-api
ports:
- "8080:8080"
depends_on:
- mongodb
environment:
PORT: 8080
MONGODB_URI: "mongodb://mongodb:27017/bot"
MONGODB_USER: "root"
MONGODB_PASS: "password"
JWTSECRET: "cooljwtsecret"
2024-03-28 08:29:33 +00:00
fe-middleware:
image: oven/bun:1
container_name: fe-middleware
2024-04-15 16:30:18 +00:00
entrypoint: /bin/bash -c
command: ["bun --hot run src/index.ts"]
2024-03-28 08:29:33 +00:00
working_dir: /usr/src/app
ports:
- "8081:8081"
2024-03-28 08:29:33 +00:00
depends_on:
- bot-api
2024-03-28 08:29:33 +00:00
environment:
PORT: 8081
BOT_API_URI: "http://bot-api:8080"
2024-04-17 17:48:56 +00:00
GELBOORU_IMAGES_PER_REQUEST: 100 # Number of images per request, maximum 100
GELBOORU_TAGS: "2girls sleeping" # Tags of the images. The images will have all of these tags
2024-03-28 08:29:33 +00:00
volumes:
- ./:/usr/src/app:ro
volumes:
mongodb_data: