2023-12-27 19:41:35 +00:00
|
|
|
version: "3"
|
2023-12-25 06:47:16 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
mongodb:
|
2023-12-31 11:11:22 +00:00
|
|
|
image: mongo:bionic
|
2023-12-25 06:47:16 +00:00
|
|
|
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: oven/bun:1
|
|
|
|
container_name: bot-api
|
2023-12-25 11:50:21 +00:00
|
|
|
command: bun run docker-dev
|
2023-12-25 06:47:16 +00:00
|
|
|
working_dir: /usr/src/app
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
|
|
- mongodb
|
|
|
|
environment:
|
|
|
|
MONGODB_URI: "mongodb://mongodb:27017/bot"
|
|
|
|
MONGODB_USER: "root"
|
|
|
|
MONGODB_PASS: "password"
|
2023-12-27 19:03:22 +00:00
|
|
|
JWTSECRET: "cooljwtsecret"
|
2023-12-25 06:47:16 +00:00
|
|
|
volumes:
|
|
|
|
- ./:/usr/src/app:ro
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mongodb_data:
|