diff --git a/docker-compose.yml b/docker-compose.yml index fbf5ebd3..e2352b1e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 environment: SINGBOX_API: "sing-box:1080" SUI_DB_FOLDER: "db" @@ -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: @@ -54,12 +52,11 @@ services: depends_on: - s-ui - syslog - syslog: image: rsyslog/syslog_appliance_alpine container_name: syslog volumes: - - "logs:/logs" + - ./logs:/logs networks: - s-ui ports: @@ -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: - \ No newline at end of file