-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (31 loc) · 904 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (31 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
services:
ofelia:
image: mcuadros/ofelia:latest
container_name: ${COMPOSE_PROJECT_NAME}-ofelia
restart: "unless-stopped"
volumes:
- ./logs:/ofelia/logs
- ./config/logrotate.conf:/etc/logrotate.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- TZ=${TIMEZONE}
command: daemon --docker
labels:
ofelia.save-folder: "/ofelia/logs"
ofelia.save-only-on-error: "false"
logrotate:
build:
context: .
dockerfile: Dockerfile
container_name: ${COMPOSE_PROJECT_NAME}-logrotate
restart: "unless-stopped"
volumes:
- ./logs:/ofelia/logs
- ./config/logrotate.conf:/etc/logrotate.conf:ro
environment:
- TZ=${TIMEZONE}
labels:
ofelia.enabled: "true"
ofelia.job-exec.rotate.schedule: "0 2 * * *"
ofelia.job-exec.rotate.command: "logrotate /etc/logrotate.conf"