Skip to content

Commit

Permalink
fix docker volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Dec 25, 2023
1 parent 56f0994 commit 34eb87b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ chat.exe
reverse
access.json
access/*.json

db
cache
config
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ access/*.json

db
redis
config
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
```

## 🔨 配置 | Config
~/**config.yaml**
~/config/**config.yaml**
```yaml
mysql:
db: chatnio
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
REDIS_DB: 0
SERVE_STATIC: "true"
volumes:
- ./config.yaml:/config.yaml
- ./config:/config
networks:
- chatnio-network

Expand Down
2 changes: 1 addition & 1 deletion utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
)

var configFile = "config.yaml"
var configFile = "config/config.yaml"
var configExampleFile = "config.example.yaml"

func ReadConf() {
Expand Down

0 comments on commit 34eb87b

Please sign in to comment.