forked from bileji/deploy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-web.yml
49 lines (48 loc) · 1.16 KB
/
docker-compose-web.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
nginx:
image: daocloud.io/oblank/nginx
container_name: nginx
links:
- php
ports:
- "80:80"
- "443:443"
- "8000:8000"
volumes:
- /data/www/htdocs:/data/www
- /data/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:
image: daocloud.io/oblank/php5
container_name: php
ports:
- "9000:9000"
volumes:
- /data/www/htdocs:/data/www
- /data/logs/php5/php:/data/logs/php
- /data/logs/php5/php-fpm:/data/logs/php-fpm
environment:
TZ: Asia/Shanghai
restart: always
##proxy:
## build: ./images/proxy
## container_name: proxy
## ports:
## - "1080:1080"
## environment:
## TZ: Asia/Shanghai
## restart: always
#php:
# build: ./images/php7
# container_name: php
# ports:
# - "9000:9000"
# volumes:
# - /data/logs/php7/php:/data/logs/php
# - /data/logs/php7/php-fpm:/data/logs/php-fpm
# environment:
# TZ: Asia/Shanghai
# restart: always