-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
42 lines (38 loc) · 945 Bytes
/
docker-compose.yml
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
41
42
version: '3.3'
services:
bot:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
container_name: ${BOT_NAME}
env_file:
- .env
links:
- mongodb
depends_on:
- mongodb
mongodb:
image: mongo:latest
restart: unless-stopped
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
MONGODB_DATA_DIR: /data/db
MONGODB_LOG_DIR: /dev/null
volumes:
- ./mongodb/data:/data/db
mongo-express:
image: mongo-express
restart: unless-stopped
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_USERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_PASSWORD}
ME_CONFIG_MONGODB_URL: mongodb://${DB_USERNAME}:${DB_PASSWORD}@mongodb:27017/
ME_CONFIG_MONGODB_ENABLE_ADMIN: true
depends_on:
- mongodb