-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 944 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
version: '3.7'
services:
mydb:
image: mysql:5.7.25
restart: on-failure
volumes:
- ./mysql/conf/my.cnf:/etc/mysql/conf.d/mysql.cnf:ro
- ./mysql/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=blog123.
networks:
- blog-net
php-fpm:
build: ./php-fpm
volumes:
- ./website:/var/www/html
- ./php-fpm/php.ini:/usr/local/etc/php/php.ini:ro
depends_on:
- mydb
networks:
- blog-net
nginx:
image: nginx:1.15.9
restart: on-failure
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf/vhost:/etc/nginx/conf.d:ro
- ./nginx/log:/var/log/nginx
- ./website:/usr/share/nginx/html
- /usr/local/nginx/conf/ssl:/etc/ssl/certs
environment:
- "TZ=Asia/Shanghai"
depends_on:
- php-fpm
networks:
- blog-net
networks:
blog-net: