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

I got an error no such files or directories #36

Open
heangratha opened this issue Oct 8, 2020 · 1 comment
Open

I got an error no such files or directories #36

heangratha opened this issue Oct 8, 2020 · 1 comment

Comments

@heangratha
Copy link

executing: /bin/bash -c /usr/bin/logrotate.d/update-logrotate.sh; /usr/sbin/logrotate --state=/logrotate-status/logrotate.status /usr/bin/logrotate.d/logrotate.conf
find: "/var/log/docker: No such file or directory
find: /var/log/nginx": No such file or directory

├── docker-compose.yml
└── logs
    ├── file.log
    └── nginx
        ├── access.log
        └── error.log

This is my docker-compose.yaml setup

---
version: '2.4'
services:
  ssl:
    image: nginx:latest
    ports:
      - 2020:80
    volumes:
      - ./logs/nginx:/var/log/nginx
  logrotate:
    image: blacklabelops/logrotate:1.3
    environment:
      - LOGS_DIRECTORIES="/var/log/docker /var/log/nginx"
      - LOGROTATE_INTERVAL=hourly
      - LOGROTATE_COMPRESSION=compress
      - LOGROTATE_COPIES=30
      - TZ=Asia/Singapore
      - LOGROTATE_CRONSCHEDULE=* * * * * *
    volumes:
      - ./logs:/var/log/docker
      - ./logs/nginx:/var/log/nginx
@lexerom
Copy link

lexerom commented Feb 3, 2022

You need to remove double quotes for LOGS_DIRECTORIES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants