Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix volume configuration in docker-compose.yml #295

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
services:
s-ui:
image: alireza7/s-ui
container_name: s-ui
hostname: "S-UI docker"
volumes:
- "singbox:/app/bin"
- "$PWD/db:/app/db"
- "$PWD/cert:/app/cert"
- "logs:/logs"
- singbox:/app/bin
- ./db:/app/db
- ./cert:/app/cert
- ./logs:/logs
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logs are not supposed to use PWD folder.

environment:
SINGBOX_API: "sing-box:1080"
SUI_DB_FOLDER: "db"
Expand All @@ -29,13 +28,12 @@ services:
entrypoint: "./entrypoint.sh"
depends_on:
- syslog

sing-box:
image: alireza7/s-ui-singbox
container_name: sing-box
volumes:
- "singbox:/app/"
- "$PWD/cert:/cert"
- singbox:/app
- ./cert:/cert
networks:
- s-ui
ports:
Expand All @@ -54,12 +52,11 @@ services:
depends_on:
- s-ui
- syslog

syslog:
image: rsyslog/syslog_appliance_alpine
container_name: syslog
volumes:
- "logs:/logs"
- ./logs:/logs
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

networks:
- s-ui
ports:
Expand All @@ -71,12 +68,9 @@ services:
- RSYSLOG_CONF_RULESET_REMOTE="ruleset(name=\"remote\") { action(type=\"omfile\" dynaFile=\"RemoteLogs\") }"
command: >
sh -c 'touch /config/container_config'

networks:
s-ui:
driver: bridge

volumes:
logs:
singbox: