-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose-server.yml
45 lines (38 loc) · 963 Bytes
/
compose-server.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
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=5s
- BACK_LOG=/srv/logs
- MONGO_PASSWD=${MONGO_PASSWD}
- APP_UID=1001 # change to your local UID
- TIME_ZONE=UTC # change to desired TZ, i.e. "America/Chicago"
ports:
- 80:8080
- 514:5514
volumes:
- ./var/logs:/srv/logs
command: ["/srv/dkll", "server"]
mongo:
image: mongo
hostname: mongo
restart: always
logging: *default_logging
volumes:
- ./var/mongo:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWD}
ports:
- "27017:27017"