55 lines
1.0 KiB
YAML
55 lines
1.0 KiB
YAML
services:
|
|
mongodb:
|
|
image: mongo:latest
|
|
container_name: ${DB__HOST}
|
|
environment:
|
|
- MONGO_INITDB_ROOT_USERNAME=${DB__USER}
|
|
- MONGO_INITDB_ROOT_PASSWORD=${DB__PASSWORD}
|
|
command: mongod --port ${DB__PORT}
|
|
restart: on-failure
|
|
volumes:
|
|
- database:/data/db
|
|
ports:
|
|
- ${DB_FORWARD_PORT}:${DB__PORT}
|
|
profiles:
|
|
- ${DB_PROFILE}
|
|
networks:
|
|
database:
|
|
|
|
bot:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: anymusicbot2/base
|
|
container_name: bot
|
|
volumes:
|
|
- ./src:/app/src
|
|
- shared_storage:/shared_storage
|
|
- database:/database
|
|
env_file:
|
|
- ".env"
|
|
command:
|
|
- "bot"
|
|
networks:
|
|
database:
|
|
|
|
preprocessor:
|
|
image: anymusicbot2/base
|
|
container_name: preprocessor
|
|
volumes:
|
|
- ./src:/app/src
|
|
- shared_storage:/shared_storage
|
|
env_file:
|
|
- ".env"
|
|
command:
|
|
- "preprocessor"
|
|
networks:
|
|
database:
|
|
|
|
volumes:
|
|
shared_storage:
|
|
database:
|
|
|
|
networks:
|
|
database:
|