2024-01-26 18:12:47 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
2024-02-22 17:26:37 +00:00
|
|
|
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:
|
|
|
|
- ./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:
|
|
|
|
image: oven/bun:1
|
|
|
|
container_name: bot-api
|
|
|
|
command: bun run docker-dev
|
|
|
|
working_dir: /usr/src/app
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
|
|
- mongodb
|
|
|
|
environment:
|
|
|
|
MONGODB_URI: "mongodb://mongodb:27017/bot"
|
|
|
|
MONGODB_USER: "root"
|
|
|
|
MONGODB_PASS: "password"
|
|
|
|
JWTSECRET: "cooljwtsecret"
|
|
|
|
volumes:
|
|
|
|
- ./:/usr/src/app:ro
|
2024-01-26 18:12:47 +00:00
|
|
|
|
|
|
|
bot-image-moderation-fe:
|
|
|
|
image: oven/bun:1
|
|
|
|
container_name: bot-image-moderation-fe
|
|
|
|
command: bun run dev --host
|
|
|
|
working_dir: /usr/src/app
|
|
|
|
ports:
|
|
|
|
- "8081:8081"
|
|
|
|
volumes:
|
|
|
|
- ./:/usr/src/app
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mongodb_data:
|