2024-01-29 17:09:58 +00:00
|
|
|
services:
|
|
|
|
mongodb:
|
|
|
|
image: mongo:bionic
|
2024-12-03 11:53:03 +00:00
|
|
|
container_name: mongodb-bot-cron
|
2024-01-29 17:09:58 +00:00
|
|
|
ports:
|
2024-12-03 11:53:03 +00:00
|
|
|
- 27017:27017
|
2024-01-29 17:09:58 +00:00
|
|
|
environment:
|
|
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
|
|
MONGO_INITDB_ROOT_PASSWORD: password
|
|
|
|
MONGO_INITDB_DATABASE: bot
|
|
|
|
volumes:
|
2024-02-16 20:04:27 +00:00
|
|
|
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
|
2024-01-29 17:09:58 +00:00
|
|
|
- mongodb_data:/data/db
|
|
|
|
|
|
|
|
bot-api:
|
2024-11-29 17:58:57 +00:00
|
|
|
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
|
2024-01-29 17:09:58 +00:00
|
|
|
ports:
|
2024-12-03 11:53:03 +00:00
|
|
|
- 8080:8080
|
2024-01-29 17:09:58 +00:00
|
|
|
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
|
2024-01-29 17:09:58 +00:00
|
|
|
|
|
|
|
bot:
|
2024-12-03 11:53:03 +00:00
|
|
|
build:
|
|
|
|
target: test
|
2024-02-17 11:11:15 +00:00
|
|
|
entrypoint: ["cargo"]
|
2024-12-03 11:53:03 +00:00
|
|
|
container_name: bot-cron
|
2024-01-29 17:09:58 +00:00
|
|
|
depends_on:
|
|
|
|
- bot-api
|
|
|
|
|
|
|
|
volumes:
|
2024-11-29 15:35:27 +00:00
|
|
|
mongodb_data:
|