[dev] basic project structure

This commit is contained in:
h
2025-03-28 16:48:44 +02:00
commit 1a5fd5977e
29 changed files with 930 additions and 0 deletions

54
docker-compose.yml Normal file
View File

@@ -0,0 +1,54 @@
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: