[dev] basic project structure
This commit is contained in:
54
docker-compose.yml
Normal file
54
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user