This commit is contained in:
tongji 2022-01-02 17:22:14 +08:00
parent ae768749f2
commit 55b476b306
5 changed files with 21 additions and 7 deletions

3
.vscode/settings.json vendored Executable file
View File

@ -0,0 +1,3 @@
{
"RTT_Studio.Build.Parallel_Jobs": "8"
}

0
README.md Normal file → Executable file
View File

21
docker-compose.yml Normal file → Executable file
View File

@ -13,9 +13,12 @@ services:
volumes: volumes:
# 映射主机./conf.d目录到容器/etc/nginx/conf.d目录 # 映射主机./conf.d目录到容器/etc/nginx/conf.d目录
- "$PWD/nginx/conf.d:/etc/nginx/conf.d" - "$PWD/nginx/conf.d:/etc/nginx/conf.d"
- "/sharedfolders/hd2/web/80:/var/www/html" - "/srv/hd/pub/web/80:/var/www/html"
networks: networks:
- web_net - web_net
# networks:
# web_net:
# ipv4_address: 192.168.222.120
# 容器名称 # 容器名称
container_name: "web_nginx" container_name: "web_nginx"
php: php:
@ -25,7 +28,7 @@ services:
# ports: # ports:
# - "9000:9000" # - "9000:9000"
volumes: volumes:
- "/sharedfolders/hd2/web/80:/var/www/html" - "/srv/hd/pub/web/80:/var/www/html"
networks: networks:
- web_net - web_net
container_name: "php-fpm" container_name: "php-fpm"
@ -42,11 +45,19 @@ services:
# # 固定子网ip网段必须在子网络192.168.8.* # # 固定子网ip网段必须在子网络192.168.8.*
# ipv4_address: 192.168.8.6 # ipv4_address: 192.168.8.6
# container_name: "compose-mysql" # container_name: "compose-mysql"
networks: networks:
# 配置docker network # 配置docker network
web_net: web_net:
driver: bridge
# networks:
# # 配置docker network
# web_net:
# driver: macvlan
# driver_opts:
# parent: ens18
# ipam: # ipam:
# driver: default
# config: # config:
# # 子网络 # - subnet: 192.168.222.0/23
# - subnet: 192.168.8.0/24 # gateway: 192.168.222.254

0
nginx/conf.d/default.conf Normal file → Executable file
View File

0
php-mysql/Dockerfile Normal file → Executable file
View File