-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (28 loc) · 916 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (28 loc) · 916 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
services:
logger:
build: .
image: umputun/docker-logger
container_name: "logger"
hostname: "logger"
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
environment:
- LOG_FILES=true
- LOG_SYSLOG=false
- EXCLUDE=docker-logger
- MAX_FILES=10
- MAX_SIZE=50
- MAX_AGE=20
- DEBUG=false
# - TIME_ZONE=America/Chicago
## to run as non-root, set APP_UID to the desired user id and DOCKER_GID
## to the group id owning /var/run/docker.sock on the host (check with: stat -c '%g' /var/run/docker.sock)
# - APP_UID=1001
# - DOCKER_GID=999
volumes:
- ./logs:/srv/logs
- /var/run/docker.sock:/var/run/docker.sock