Commit aecdf45b authored by Kunkka王辉's avatar Kunkka王辉 😲

变更参数

parent f753aa97
# 环境变量env dev,test,test1,test2等区分
ENV=dev
PORT=8118
\ No newline at end of file
......@@ -5,7 +5,7 @@ services:
context: src
dockerfile: Dockerfile-php
image: galaxy-php:7.4
container_name: php7.4
container_name: galaxy-php7.4${ENV:-dev}
# environment:
#目录映射
expose:
......@@ -14,15 +14,13 @@ services:
build:
context: src
dockerfile: Dockerfile-nginx
args:
- ENV_HELLO
# 目录共享
# 指定目录映射
#
image: galaxy-nginx
container_name: nginx-test
container_name: nginx-test${ENV:-dev}
expose:
- 80
ports:
- "8111:80"
- "${PORT:-8118}:80"
command: ["nginx", "-g","daemon off;"]
\ No newline at end of file
FROM nginx:latest
## 初始化参数
ENTRYPOINT ["/docker-entrypoint.sh"]
RUN mkdir /etc/nginx/php
COPY <<EOF /etc/nginx/php/php7.4.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment