-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
70 lines (35 loc) · 941 Bytes
/
compose.yaml
File metadata and controls
70 lines (35 loc) · 941 Bytes
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
version: "3.8"
services:
web:
image: shinjwde/duckmealng:latest
network_mode: host
restart: on-failure
environment:
- SPRING_DATA_MONGODB_HOST=localhost
- SPRING_DATA_REDIS_HOST=localhost
- REDIS_PASSWORD=${REDIS_PASSWORD}
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
depends_on:
- mongo
- redis
mongo:
image: shinjwde/duckmealng-mongo:latest
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
restart: on-failure
redis:
image: shinjwde/duckmealng-redis:latest
ports:
- "6379:6379"
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
command: redis-server --requirepass ${REDIS_PASSWORD}
restart: on-failure
volumes:
mongo-data: