-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.02 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
version: "3.5"
services:
app:
build:
context: ./
dockerfile: ./Dockerfile
image: isee-bot
env_file: .env
networks:
- isee_bot
mongo:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASS}
# ports:
# - "27017:27017"
networks:
- isee_bot
volumes:
- type: volume
source: mongo_data
target: /data/db
- type: volume
source: mongo_config
target: /data/configdb
mongo_express:
image: mongo-express:latest
restart: always
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_PASS}
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_PORT: "27017"
ports:
- "0.0.0.0:8085:8081"
networks:
- isee_bot
depends_on:
- mongo
networks:
isee_bot:
name: isee_bot
volumes:
mongo_data:
name: isee_bot_mongo_data
mongo_config:
name: isee_bot_mongo_config