bot-mastodon-image-uploader/compose.yaml

38 lines
819 B
YAML
Raw Normal View History

services:
mongodb:
image: mongo:bionic
2024-12-03 11:53:03 +00:00
container_name: mongodb-bot-cron
ports:
2024-12-03 11:53:03 +00:00
- 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
bot-api:
image: git.fai.st/fedi-image-bot/bot-api:v1.0.2
2024-12-03 11:53:03 +00:00
container_name: bot-api-bot-cron
ports:
2024-12-03 11:53:03 +00:00
- 8080:8080
depends_on:
- mongodb
environment:
2024-12-03 11:53:03 +00:00
MONGODB_URI: mongodb://mongodb:27017/bot
MONGODB_USER: root
MONGODB_PASS: password
JWTSECRET: cooljwtsecret
bot:
2024-12-03 11:53:03 +00:00
build:
target: test
entrypoint: ["cargo"]
2024-12-03 11:53:03 +00:00
container_name: bot-cron
depends_on:
- bot-api
volumes:
2024-11-29 15:35:27 +00:00
mongodb_data: