2021-12-07 01:18:44 +03:00
|
|
|
# Use root/example as user/password credentials
|
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
bot:
|
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
|
|
|
env_file:
|
2021-12-07 10:30:23 +03:00
|
|
|
- bot.env
|
2021-12-07 01:18:44 +03:00
|
|
|
mongo:
|
2023-09-10 13:44:25 +03:00
|
|
|
image: mongo:4
|
2021-12-07 01:18:44 +03:00
|
|
|
restart: always
|
2021-12-07 10:30:23 +03:00
|
|
|
env_file:
|
|
|
|
- mongo.env
|
2021-12-07 01:18:44 +03:00
|
|
|
ports:
|
2023-09-06 22:26:53 +03:00
|
|
|
- ${HOST}:28003:27017
|
2022-02-02 12:16:45 +03:00
|
|
|
volumes:
|
|
|
|
- mongodata:/data/db
|
|
|
|
- mongoconfig:/data/configdb
|
2021-12-07 01:18:44 +03:00
|
|
|
|
2023-09-10 13:44:25 +03:00
|
|
|
# mongo-express:
|
|
|
|
# image: mongo-express
|
|
|
|
# restart: always
|
|
|
|
# ports:
|
|
|
|
# - ${HOST}:8090:8081
|
|
|
|
# env_file:
|
|
|
|
# - mongo.env
|
2022-02-02 12:16:45 +03:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
mongodata:
|
2022-11-09 02:02:12 +03:00
|
|
|
mongoconfig:
|