46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
services:
|
|
nginx-php:
|
|
image: harbor.boyachain.cn:20443/general/nginx-php:7.4
|
|
container_name: nginx-php
|
|
restart: "on-failure"
|
|
stop_grace_period: 5m
|
|
privileged: true
|
|
ports:
|
|
- 1080:80
|
|
volumes:
|
|
- type: bind
|
|
source: ./nginx/html
|
|
target: /var/lib/nginx/html
|
|
- type: bind
|
|
source: ./nginx/http.d
|
|
target: /etc/nginx/http.d
|
|
- type: bind
|
|
source: ./nginx/log
|
|
target: /var/log/nginx
|
|
- type: bind
|
|
source: ./php7/log
|
|
target: /var/log/php7
|
|
|
|
php81:
|
|
image: harbor.boyachain.cn:20443/general/nginx-php:8.1
|
|
container_name: php81
|
|
restart: "on-failure"
|
|
stop_grace_period: 5m
|
|
privileged: true
|
|
ports:
|
|
- 2080:80
|
|
volumes:
|
|
- type: bind
|
|
source: ./nginx/html
|
|
target: /var/lib/nginx/html
|
|
- type: bind
|
|
source: ./nginx/http.d
|
|
target: /etc/nginx/http.d
|
|
- type: bind
|
|
source: ./nginx/log
|
|
target: /var/log/nginx
|
|
- type: bind
|
|
source: ./php81/log
|
|
target: /var/log/php81
|
|
|