feat(global): init structure
This commit is contained in:
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
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:
|
||||
aliases:
|
||||
- ${DB__HOST}
|
||||
|
||||
bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: solaris-guest-bot/base
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
env_file:
|
||||
- ".env"
|
||||
command:
|
||||
- "bot"
|
||||
networks:
|
||||
database:
|
||||
|
||||
volumes:
|
||||
database:
|
||||
|
||||
networks:
|
||||
database:
|
||||
Reference in New Issue
Block a user