-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.31 KB
/
docker-compose.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
version: "2.4"
services:
backend:
build:
context: .
ports:
- '3001:3001'
- '12201:12201/udp'
depends_on:
mongo:
condition: service_healthy
environment:
- LITELOG_MONGO=mongodb://mongo/litelogs
- LITELOG_PORT=12201
- LITELOG_IP=0.0.0.0
- LITELOG_TTL=2
- LITELOG_API_PORT=3001
- LITELOG_API_KEY=mysecretkey
frontend:
build:
context: frontend/
args:
VUE_APP_API_KEY: "mysecretkey"
VUE_APP_API_SERVER: "http://localhost:3001"
ports:
- "3002:80"
logging:
driver: gelf
options:
gelf-address: udp://host.docker.internal:12201
logger:
image: ubuntu:19.10
init: true
command: /bin/sh -c "while true; do echo 'hello'; sleep 5; done"
logging:
driver: gelf
options:
gelf-address: udp://host.docker.internal:12201
mongo:
image: mongo:4.0.14
ports:
- "27017:27017"
healthcheck:
test: echo 'db.stats().ok' | mongo localhost:27017/litelogs --quiet
logging:
driver: gelf
options:
gelf-address: udp://host.docker.internal:12201
mongoexpress:
image: mongo-express:0.49
ports:
- "8081:8081"
logging:
driver: gelf
options:
gelf-address: udp://host.docker.internal:12201