-
Notifications
You must be signed in to change notification settings - Fork 22
/
compose.yml.sample
49 lines (47 loc) · 1.17 KB
/
compose.yml.sample
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
services:
bot:
image: ghcr.io/mtripg6666tdr/discord-music-bot:latest
container_name: dsmb-instance
restart: always
env_file:
# .envファイルのパスを指定
- "path/to/your-environment-file"
environment:
- DB_URL=mongodb://dsmb:hogehoge@mongo:27017/
volumes:
- type: bind
# config.jsonのパスを指定
source: "path/to/your-config.json"
target: "/app/config.json"
- type: bind
# ログの保存先を指定
source: "path/to/your-logs-directory"
target: "/app/logs"
- type: volume
source: dsmb-bin
target: "/app/bin"
- type: volume
source: dsmb-cache
target: "/app/cache"
depends_on:
- mongo
mongo:
image: mongo:latest
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=dsmb
- MONGO_INITDB_ROOT_PASSWORD=hogehoge
ports:
- 27017:27017
volumes:
- type: volume
source: dsmb-mongo-db
target: /data/db
- type: volume
source: dsmb-mongo-config-db
target: /data/configdb
volumes:
dsmb-bin:
dsmb-cache:
dsmb-mongo-db:
dsmb-mongo-config-db: