Skip to content

Commit 6b20220

Browse files
committed
feat: support docker compose up
1. support `docker compose up` 2. map local config.json to container
1 parent e522df3 commit 6b20220

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.log
22
config.dev.json
3+
config.json
34
# Git
45
.git
56
.gitignore

docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3"
2+
3+
services:
4+
chatgpt-discord-bot:
5+
build: .
6+
image: chatgpt-discord-bot
7+
container_name: chatgpt-discord-bot
8+
volumes:
9+
- ./config.json:/DiscordBot/config.json

0 commit comments

Comments
 (0)