diff --git a/docker/README.md b/docker/README.md index c3daaa64..dcc1bb14 100644 --- a/docker/README.md +++ b/docker/README.md @@ -89,6 +89,8 @@ mkdir -p /root/ShellCrash docker run -d \ ……………… -v shellcrash_configs:/etc/ShellCrash/configs \ + -v shellcrash_yamls:/etc/ShellCrash/yamls \ + -v shellcrash_jsons:/etc/ShellCrash/jsons \ ……………… ``` @@ -134,7 +136,7 @@ docker rm -f shellcrash ### Docker删除卷 ```shell -docker volume rm shellcrash_configs +docker volume rm shellcrash_configs shellcrash_yamls shellcrash_jsons ``` ### Compose删除容器&卷 diff --git a/docker/compose.yml b/docker/compose.yml index d246815b..636dd9df 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -18,10 +18,14 @@ services: # - net.ipv6.conf.all.forwarding=1 volumes: - shellcrash_configs:/etc/ShellCrash/configs:rw + - shellcrash_yamls:/etc/ShellCrash/yamls:rw + - shellcrash_jsons:/etc/ShellCrash/jsons:rw restart: unless-stopped volumes: shellcrash_configs: + shellcrash_yamls: + shellcrash_jsons: networks: macvlan_lan: