-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose-demo.yml
70 lines (58 loc) · 1.41 KB
/
compose-demo.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '2'
services:
dkll-server:
build: .
image: umputun/dkll
container_name: "dkll-server"
hostname: "dkll-server"
restart: always
logging: &default_logging
driver: json-file
options:
max-size: "10m"
max-file: "5"
environment:
- MONGO=mongodb://mongo:27017?db=dkll&collecion=logs
- MONGO_DELAY=10s
- BACK_LOG=/srv/logs
- MONGO_PASSWD=${MONGO_PASSWD}
- DEBUG=true
ports:
- 80:8080
volumes:
- ./var/logs:/srv/logs
command: ["/srv/dkll", "server"]
dkll-agent:
build: .
image: umputun/dkll
container_name: "dkll-agent"
hostname: "demo-host"
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
environment:
- LOG_FILES=true
- LOG_SYSLOG=true
- SYSLOG_HOST=dkll-server:5514
- EXCLUDE=dkll-agent,dkll-server,dkll-mongo
- DEBUG=true
- DEMO=true
- APP_UID=0 # run with root privileges
- TIME_ZONE=America/Chicago
volumes:
- ./logs:/srv/logs
- /var/run/docker.sock:/var/run/docker.sock
command: ["/srv/dkll", "agent"]
mongo-dkll:
image: mongo
hostname: mongo-dkll
restart: always
logging: *default_logging
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWD}
ports:
- "27017:27017"