2019-10-29 14:17:30 +08:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mysql
|
2019-10-29 17:19:31 +08:00
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
2019-10-29 14:17:30 +08:00
|
|
|
environment:
|
2019-10-29 17:19:31 +08:00
|
|
|
- MYSQL_ROOT_PASSWORD=123456
|
2019-10-29 14:17:30 +08:00
|
|
|
volumes:
|
2019-10-29 14:58:15 +08:00
|
|
|
- ./docker/mysql:/var/lib/mysql
|
2019-10-29 14:17:30 +08:00
|
|
|
- ./install.sql:/install.sql
|
|
|
|
phpfpm:
|
|
|
|
image: bitnami/php-fpm
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
nginx:
|
|
|
|
image: nginx
|
|
|
|
depends_on:
|
|
|
|
- phpfpm
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
2019-10-29 14:58:15 +08:00
|
|
|
- ./docker/nginx:/etc/nginx/conf.d
|
2019-10-29 14:17:30 +08:00
|
|
|
ports:
|
|
|
|
- 8964:80
|
|
|
|
|