50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
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
|