diff --git a/docker-compose.yml b/docker-compose.yml index 1fdf35be..eb3f0e6d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: - SECRET_KEY - EXPIRE_DAY volumes: - - files:/logs/ + - ./logs/:/logs/ depends_on: - sonic-server-zookeeper networks: @@ -55,7 +55,7 @@ services: networks: - sonic-network volumes: - - files:/logs/ + - ./logs/:/logs/ depends_on: - sonic-server-zookeeper ports: @@ -75,11 +75,11 @@ services: networks: - sonic-network volumes: - - files:/keepFiles/ - - files:/imageFiles/ - - files:/recordFiles/ - - files:/packageFiles/ - - files:/logs/ + - ./keepFiles/:/keepFiles/ + - ./imageFiles/:/imageFiles/ + - ./recordFiles/:/recordFiles/ + - ./packageFiles/:/packageFiles/ + - ./logs/:/logs/ depends_on: - sonic-server-zookeeper restart: on-failure @@ -95,9 +95,6 @@ services: ports: - "${SONIC_CLIENT_PORT}:80" -volumes: - files: - networks: sonic-network: driver: bridge \ No newline at end of file diff --git a/docker-compose2.yml b/docker-compose2.yml index fcaa3daf..e45f47e5 100644 --- a/docker-compose2.yml +++ b/docker-compose2.yml @@ -18,7 +18,7 @@ services: - SECRET_KEY - EXPIRE_DAY volumes: - - files:/logs/ + - ./logs/:/logs/ depends_on: - sonic-server-zookeeper networks: @@ -55,7 +55,7 @@ services: networks: - sonic-network volumes: - - files:/logs/ + - ./logs/:/logs/ depends_on: - sonic-server-zookeeper ports: @@ -75,11 +75,11 @@ services: networks: - sonic-network volumes: - - files:/keepFiles/ - - files:/imageFiles/ - - files:/recordFiles/ - - files:/packageFiles/ - - files:/logs/ + - ./keepFiles/:/keepFiles/ + - ./imageFiles/:/imageFiles/ + - ./recordFiles/:/recordFiles/ + - ./packageFiles/:/packageFiles/ + - ./logs/:/logs/ depends_on: - sonic-server-zookeeper restart: on-failure @@ -95,9 +95,6 @@ services: ports: - "${SONIC_CLIENT_PORT}:80" -volumes: - files: - networks: sonic-network: driver: bridge \ No newline at end of file