2024-01-26 18:12:47 +00:00
|
|
|
services:
|
2024-02-22 17:26:37 +00:00
|
|
|
mongodb:
|
|
|
|
image: mongo:bionic
|
2024-12-09 08:49:13 +00:00
|
|
|
container_name: mongodb-fe
|
2024-02-22 17:26:37 +00:00
|
|
|
ports:
|
|
|
|
- "27017:27017"
|
|
|
|
environment:
|
|
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
|
|
MONGO_INITDB_ROOT_PASSWORD: password
|
|
|
|
MONGO_INITDB_DATABASE: bot
|
|
|
|
volumes:
|
|
|
|
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
|
|
|
|
- mongodb_data:/data/db
|
2024-01-26 18:12:47 +00:00
|
|
|
|
2024-02-22 17:26:37 +00:00
|
|
|
bot-api:
|
2024-04-20 12:01:08 +00:00
|
|
|
image: git.fai.st/fedi-image-bot/bot-api:latest
|
2024-12-09 08:49:13 +00:00
|
|
|
container_name: bot-api-fe
|
2024-02-22 17:26:37 +00:00
|
|
|
ports:
|
2024-12-09 08:49:13 +00:00
|
|
|
- 8080:8080
|
2024-02-22 17:26:37 +00:00
|
|
|
depends_on:
|
|
|
|
- mongodb
|
|
|
|
environment:
|
2024-04-20 12:01:08 +00:00
|
|
|
PORT: 8080
|
2024-02-22 17:26:37 +00:00
|
|
|
MONGODB_URI: "mongodb://mongodb:27017/bot"
|
|
|
|
MONGODB_USER: "root"
|
|
|
|
MONGODB_PASS: "password"
|
|
|
|
JWTSECRET: "cooljwtsecret"
|
2024-04-20 12:01:08 +00:00
|
|
|
|
|
|
|
fe-middleware:
|
|
|
|
image: git.fai.st/fedi-image-bot/fe-middleware:latest
|
2024-12-09 08:49:13 +00:00
|
|
|
container_name: fe-middleware-fe
|
2024-04-20 12:01:08 +00:00
|
|
|
ports:
|
2024-12-09 08:49:13 +00:00
|
|
|
- 8081:8081
|
2024-04-20 12:01:08 +00:00
|
|
|
depends_on:
|
|
|
|
- bot-api
|
|
|
|
environment:
|
|
|
|
PORT: 8081
|
|
|
|
BOT_API_URI: "http://bot-api:8080"
|
|
|
|
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-01-26 18:12:47 +00:00
|
|
|
|
|
|
|
bot-image-moderation-fe:
|
2024-04-20 12:01:08 +00:00
|
|
|
build: .
|
2024-01-26 18:12:47 +00:00
|
|
|
container_name: bot-image-moderation-fe
|
|
|
|
ports:
|
2024-12-09 08:49:13 +00:00
|
|
|
- 80:80
|
2024-04-20 12:01:08 +00:00
|
|
|
develop:
|
|
|
|
watch:
|
|
|
|
- action: rebuild
|
2024-04-21 12:11:55 +00:00
|
|
|
path: .
|
2024-04-20 12:01:08 +00:00
|
|
|
ignore:
|
|
|
|
- node_modules/
|
2024-01-26 18:12:47 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
mongodb_data:
|