-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (40 loc) · 893 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (40 loc) · 893 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
version: "2"
services:
mongo:
build: ./docker/mongo
restart: always
environment:
- MONGODB_ADMIN_USER
- MONGODB_ADMIN_PASS
- MONGODB_APPLICATION_DATABASE
- MONGODB_APPLICATION_USER
- MONGODB_APPLICATION_PASS
volumes_from:
- mongodata
ports:
- "27019:27017"
command: --auth
mongoui:
image: twnel/mongo-express
environment:
- ME_CONFIG_BASICAUTH_USERNAME
- ME_CONFIG_BASICAUTH_PASSWORD
- ME_CONFIG_MONGODB_ENABLE_ADMIN
- ME_CONFIG_MONGODB_ADMINUSERNAME
- ME_CONFIG_MONGODB_ADMINPASSWORD
ports:
- "8081:8081"
links:
- mongo
mongodata:
image: tianon/true
volumes:
- /data/db
redis:
image: redis:4.0.5-alpine
restart: always
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
volumes:
redis-data: