forked from bileji/deploy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
88 lines (88 loc) · 2.05 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#proxy:
# build: ./images/proxy
# container_name: proxy
# ports:
# - "1080:1080"
# environment:
# TZ: Asia/Shanghai
# restart: always
#nginx:
# build: ./images/nginx
# container_name: nginx
# links:
# - php7
# - mysql
# - redis
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./works:/data/www
# - ./volumes/logs/nginx:/var/log/nginx
# - ./volumes/nginx/sites:/etc/nginx/sites-enabled
# - ./volumes/nginx/includes:/etc/nginx/includes
# environment:
# TZ: Asia/Shanghai
# restart: always
#php:
# build: ./images/php7
# container_name: php
# ports:
# - "9000:9000"
# volumes:
# - ./volumes/logs/php7/php:/data/logs/php
# - ./volumes/logs/php7/php-fpm:/data/logs/php-fpm
# environment:
# TZ: Asia/Shanghai
# restart: always
#php:
# build: ./images/php5
# container_name: php
# ports:
# - "9000:9000"
# volumes:
# - ./volumes/logs/php5/php:/data/logs/php
# - ./volumes/logs/php5/php-fpm:/data/logs/php-fpm
# environment:
# TZ: Asia/Shanghai
# restart: always
#mysql:
# build: ./images/mysql
# container_name: mysql
# ports:
# - "3306:3306"
# volumes:
# - ./volumes/logs/mysql:/var/log/mysql
# - ./volumes/db/mysql:/var/lib/mysql
# environment:
# TZ: Asia/Shanghai
# MYSQL_ROOT_PASSWORD: "root"
# restart: always
#redis:
# build: ./images/redis
# container_name: redis
# ports:
# - "6379:6379"
# volumes:
# - ./volumes/db/redis:/data/db/redis
# environment:
# TZ: Asia/Shanghai
# restart: always
#memcached:
# build: ./images/memcached
# container_name: memcached
# ports:
# - "11211:11211"
# environment:
# TZ: Asia/Shanghai
# restart: always
mongodb:
build: ./images/mongodb
container_name: mongodb
ports:
- "27018:27017"
volumes:
- ./volumes/db/mongodb:/data/db
environment:
TZ: Asia/Shanghai
restart: always