Skip to content

Commit

Permalink
fix: the file mount issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowballXueQiu committed Aug 31, 2023
1 parent 2bc75d6 commit 62eb31c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions backend/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
- "com.centurylinklabs.watchtower.scope=backend"

0 comments on commit 62eb31c

Please sign in to comment.