-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
48 lines (44 loc) · 905 Bytes
/
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
services:
redis:
image: "redis:latest"
container_name: "redis"
volumes:
- redis_data:/data
restart: always
command: redis-server --appendonly yes --requirepass pluto
ports:
- 6479:6379
networks:
- pluto-network
mongo:
image: "mongo:latest"
container_name: "mongo"
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_DATABASE=auth
- MONGO_INITDB_ROOT_PASSWORD=pluto
restart: always
ports:
- 28017:27017
volumes:
- mongo_data:/data/db
networks:
- pluto-network
pluto:
build:
context: .
dockerfile: './Dockerfile'
container_name: "pluto"
depends_on:
- redis
- mongo
command: tail -f /dev/null
restart: always
networks:
- pluto-network
volumes:
redis_data: {}
mongo_data: {}
networks:
pluto-network:
driver: bridge