-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 1.35 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
# This is the dev docker-compose file, and should only be used in development, and not production, as it allows for semi-hot-reload (restart of bot thorugh the stop command)
version: "3.6"
services:
bot:
# image: themikkel/group-dcbot
build: .
volumes:
- ./dist:/usr/src/app/dist
- ./resources:/usr/src/app/resources
- ./package.json:/usr/src/app/package.json
- ./package-lock.json:/usr/src/app/package-lock.json
restart: always
environment:
bot_token: ${bot_token}
bot_prefix: ${bot_prefix}
app_id: ${app_id}
database_url: mongodb://${db_username}:${db_password}@mongodb:27017/
language: da
env: ${env}
mongodb:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${db_username}
MONGO_INITDB_ROOT_PASSWORD: ${db_password}
volumes:
- ./db:/data/db
ports:
- 27017:27017
mongo-express:
image: mongo-express
restart: always
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/