-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (48 loc) · 1.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (48 loc) · 1.06 KB
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
version: '2'
services:
# http://www.voidcn.com/blog/ztsinghua/article/p-5986242.html
###### redis container #####
redis:
build:
context: ./Redis
container_name: docker_redis
volumes:
- ./data/redis:/data
- ./logs/redis:/var/log/redis
- ./Redis/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
tty: true
# # # ##### mongodb container #####
mongodb:
build:
context: ./Mongodb
container_name: docker_mongodb
ports:
- "27017:27017"
volumes:
- ./data/mongodb:/data/mongodb
- ./logs/mongodb:/var/log/mongodb
tty: true
#### work container #####
workspace:
build:
context: ./Workspace
container_name: docker_work_space
depends_on:
- redis
- mongodb
ports:
- "4000:4000"
tty: true
# # # # ##### Nginx container #####
# nginx:
# build:
# context: ./Nginx
# container_name: docker_nginx
# depends_on:
# - workspace
# ports:
# - "80:80"
# - "443:443"
# tty: true