-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 1.17 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
version: "3.3"
services:
mongo:
image: mongo
restart: always
container_name: mongo
logging:
driver: "json-file"
options:
max-size: 1g
volumes:
- mongo_data:/data/db
ports:
- "27017:27017"
# ! UNSTABLE - use at your own risk
# mongo-express:
# image: mongo-express
# restart: always
# container_name: mongo-express
# environment:
# - ME_CONFIG_MONGODB_SERVER=mongo
# - ME_CONFIG_BASICAUTH_USERNAME=admin
# - ME_CONFIG_BASICAUTH_PASSWORD=secret
# ports:
# - "8081:8081"
# depends_on:
# - mongo
bot:
build: .
restart: unless-stopped
container_name: liberation
depends_on:
- mongo
volumes:
- bot_logs:/app/src/logs
volumes:
mongo_data:
driver: local
bot_logs:
driver: local