-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
59 lines (54 loc) · 1.34 KB
/
docker-compose.yaml
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
services:
redis:
image: redis:alpine
restart: always
volumes:
- redis-data:/data
networks:
- redis-net
mongo:
image: mongo:6
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD:-example}
volumes:
- mongo-data:/data/db
logging:
driver: none
networks:
- mongo-net
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/easylogs --quiet
interval: 10s
timeout: 10s
retries: 3
easylogs:
image: cr0hn/easylogs
restart: always
environment:
MONGO_DB: ${MONGO_DB:-easylogs}
MONGO_URI: ${MONGO_URI:-mongodb://root:example@mongo:27017}
RECEIVE_LOGS_KEY: ${RECEIVE_LOGS_KEY:-LIh982y87GgljahsadfklJHLIUG87g1u1e7f6eb2ee145571858e8e24}
REDIS_URI: ${REDIS_URI:-redis://redis:6379}
ADMIN_USER: ${ADMIN_USER:-admin}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-adminadmin}
ports:
- '8080:8080'
networks:
- mongo-net
- redis-net
depends_on:
- mongo
healthcheck:
test: curl --fail http://localhost:8080/health-check || exit 1
interval: 60s
retries: 5
start_period: 10s
timeout: 10s
volumes:
mongo-data:
redis-data:
networks:
mongo-net:
redis-net: