Fix: fix logrotate is dir issue

Change it to bind command

Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
DQ 2020-03-13 14:58:45 +08:00
parent 23d2a10961
commit 4bbf391d3b

View File

@ -14,8 +14,12 @@ services:
- SETUID - SETUID
volumes: volumes:
- {{log_location}}/:/var/log/docker/:z - {{log_location}}/:/var/log/docker/:z
- ./common/config/log/logrotate.conf:/etc/logrotate.d/logrotate.conf:z - type: bind
- ./common/config/log/rsyslog_docker.conf:/etc/rsyslog.d/rsyslog_docker.conf:z source: ./common/config/log/logrotate.conf
target: /etc/logrotate.d/logrotate.conf
- type: bind
source: ./common/config/log/rsyslog_docker.conf
target: /etc/rsyslog.d/rsyslog_docker.conf
ports: ports:
- 127.0.0.1:1514:10514 - 127.0.0.1:1514:10514
networks: networks: