新增本地开发环境配置
This commit is contained in:
49
docker-compose.yaml
Normal file
49
docker-compose.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
name: juipphp
|
||||
|
||||
services:
|
||||
|
||||
mysql:
|
||||
image: mysql:8.0.21
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: 123456789
|
||||
MYSQL_DATABASE: hualianyun
|
||||
ports:
|
||||
- "3306:3306"
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
volumes:
|
||||
- ./.volumes/mysql:/var/lib/mysql
|
||||
|
||||
php:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./alipay:/var/www/html/alipay
|
||||
- ./app:/var/www/html/app
|
||||
- ./config:/var/www/html/config
|
||||
- ./enum:/var/www/html/enum
|
||||
- ./extends:/var/www/html/extends
|
||||
- ./fastphp:/var/www/html/fastphp
|
||||
- ./script:/var/www/html/script
|
||||
- ./vendor:/var/www/html/vendor
|
||||
- ./.htaccess:/var/www/html/.htaccess
|
||||
- ./index.php:/var/www/html/index.php
|
||||
depends_on:
|
||||
- mysql
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/app.conf
|
||||
- ./alipay:/var/www/html/alipay
|
||||
- ./app:/var/www/html/app
|
||||
- ./config:/var/www/html/config
|
||||
- ./enum:/var/www/html/enum
|
||||
- ./extends:/var/www/html/extends
|
||||
- ./fastphp:/var/www/html/fastphp
|
||||
- ./script:/var/www/html/script
|
||||
- ./vendor:/var/www/html/vendor
|
||||
- ./.htaccess:/var/www/html/.htaccess
|
||||
- ./index.php:/var/www/html/index.php
|
||||
ports:
|
||||
- 9000:9000
|
||||
Reference in New Issue
Block a user