-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstack.yml
More file actions
48 lines (47 loc) · 1.16 KB
/
stack.yml
File metadata and controls
48 lines (47 loc) · 1.16 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
version: '3.0'
services:
nginx:
image: registry.cn-hangzhou.aliyuncs.com/zhaojunlike/simple-bbs-nginx:1.13.3
ports:
- "80:80"
- "443:443"
links:
- "php-fpm"
volumes:
- /var/log/nginx:rw
- "/etc/localtime:/etc/localtime:ro"
restart: always
command: nginx -g 'daemon off;'
mysql:
image: mysql:5.7
volumes:
- /var/lib/mysql:rw
- /var/lib/mysql-logs:rw
- "/etc/localtime:/etc/localtime:ro"
restart: always
environment:
MYSQL_ROOT_PASSWORD: zhaojun
MYSQL_DATABASE: package_v1
MYSQL_USER: zhaojun
MYSQL_PASSWORD: zhaojun
command: "--character-set-server=utf8 --collation-server=utf8_unicode_ci"
redis-db:
image: redis
restart: always
volumes:
- /data
- "/etc/localtime:/etc/localtime:ro"
php-fpm:
image: registry.cn-hangzhou.aliyuncs.com/zhaojunlike/simple-bbs-php-fpm:5.6
restart: always
environment:
DEV_APP_DEBUG: 0
APP_DEBUG: 0
APP_TRACE: 0
volumes:
- /var/log/php-fpm:rw
- "/etc/localtime:/etc/localtime:ro"
links:
- mysql:mysql-db
- redis-db
command: php-fpm