-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 858 Bytes
/
docker-compose.yaml
File metadata and controls
40 lines (37 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
bot:
build: .
restart: always
container_name: telegram_rp_bot
env_file:
- .env
depends_on:
- mongodb
networks:
- internal
mongodb:
image: mongo:8.0
command:
- "--auth"
- "--bind_ip_all"
- "--setParameter=enableLocalhostAuthBypass=false"
restart: always
container_name: telegram_rp_bot_mongo
ports:
- "127.0.0.1:27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_ADMIN_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_ADMIN_PASSWORD}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
volumes:
- mongo_data:/data/db
- ./init/01-init-app-user.js:/docker-entrypoint-initdb.d/01-init-app-user.js:ro
networks:
- internal
volumes:
mongo_data:
networks:
internal:
driver: bridge