From 62eb31ceb478ee2b5711b91874105bafbdb7cf1a Mon Sep 17 00:00:00 2001 From: Snowball_233 Date: Thu, 31 Aug 2023 15:54:40 +0800 Subject: [PATCH] fix: the file mount issue --- .idea/.gitignore | 8 ++++++++ backend/docker-compose.yaml | 13 ++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/backend/docker-compose.yaml b/backend/docker-compose.yaml index 9622fa6..5ae5be7 100644 --- a/backend/docker-compose.yaml +++ b/backend/docker-compose.yaml @@ -22,10 +22,13 @@ services: backend: ipv4_address: 172.31.0.2 volumes: - - /home/BackendServer/config.toml:/home/Vastsea/backend-server/config.toml - - /home/BackendServer/log/:/home/Vastsea/backend-server/log/ + - ./config/config.toml:/home/config/config.toml + - ./log/:/home/BackendServer/log/ entrypoint: /bin/bash - command: -c "/home/BackendServer/backend_server" + command: -c " + sleep 5 && + cd /home/config/ && + /home/BackendServer/backend_server" tty: true labels: - "com.centurylinklabs.watchtower.scope=backend" @@ -42,7 +45,7 @@ services: ipv4_address: 172.31.0.3 volumes: - /var/run/docker.sock:/var/run/docker.sock - - /root/.docker/config.json:/home/Vastsea/backend-server/watchtower/config.json + - /root/.docker/config.json:/config.json command: --interval 30 --cleanup true --include-restarting true --scope backend labels: - - "com.centurylinklabs.watchtower.scope=backend" \ No newline at end of file + - "com.centurylinklabs.watchtower.scope=backend"