-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.devel.yaml
54 lines (49 loc) · 1.13 KB
/
docker-compose.devel.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
services:
redis:
image: redis:alpine
restart: always
volumes:
- redis-data:/data
networks:
- redis-net
mongo:
image: mongo:5
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- '27099:27017'
volumes:
- mongo-data:/data/db
networks:
- mongo-net
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/easylogs --quiet
interval: 10s
timeout: 10s
retries: 3
easylogs:
build:
context: .
restart: always
environment:
MONGO_DB: ${MONGO_DB:-easylogs}
MONGO_URI: ${MONGO_URI:-mongodb://root:example@mongo:27017}
REDIS_URI: ${REDIS_URI:-redis://redis:6379}
RECEIVE_LOGS_KEY: ${RECEIVE_LOGS_KEY:-LIh982y87GgljahsadfklJHLIUG87g1u1e7f6eb2ee145571858e8e24}
ADMIN_USER: ${ADMIN_USER:-admin}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-adminadmin}
ports:
- '8080:8080'
networks:
- mongo-net
- redis-net
depends_on:
- mongo
volumes:
mongo-data:
redis-data:
networks:
mongo-net:
redis-net: