41 lines
689 B
YAML
41 lines
689 B
YAML
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
|
|
profiles:
|
|
- mongodb
|
|
- external
|
|
networks:
|
|
database:
|
|
aliases:
|
|
- ${DB__HOST}
|
|
|
|
bot:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: post-proposal-bot/base
|
|
volumes:
|
|
- ./src:/app/src
|
|
env_file:
|
|
- ".env"
|
|
command:
|
|
- "bot"
|
|
profiles:
|
|
- bot
|
|
- services
|
|
networks:
|
|
database:
|
|
|
|
volumes:
|
|
database:
|
|
|
|
networks:
|
|
database:
|