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: ...@@ -5,7 +5,7 @@ services:
context: src context: src
dockerfile: Dockerfile-php dockerfile: Dockerfile-php
image: galaxy-php:7.4 image: galaxy-php:7.4
container_name: php7.4 container_name: galaxy-php7.4${ENV:-dev}
# environment: # environment:
#目录映射 #目录映射
expose: expose:
...@@ -14,15 +14,13 @@ services: ...@@ -14,15 +14,13 @@ services:
build: build:
context: src context: src
dockerfile: Dockerfile-nginx dockerfile: Dockerfile-nginx
args:
- ENV_HELLO
# 目录共享 # 目录共享
# 指定目录映射 # 指定目录映射
# #
image: galaxy-nginx image: galaxy-nginx
container_name: nginx-test container_name: nginx-test${ENV:-dev}
expose: expose:
- 80 - 80
ports: ports:
- "8111:80" - "${PORT:-8118}:80"
command: ["nginx", "-g","daemon off;"] command: ["nginx", "-g","daemon off;"]
\ No newline at end of file
FROM nginx:latest FROM nginx:latest
## 初始化参数 ## 初始化参数
ENTRYPOINT ["/docker-entrypoint.sh"] ENTRYPOINT ["/docker-entrypoint.sh"]
RUN mkdir /etc/nginx/php RUN mkdir /etc/nginx/php
COPY <<EOF /etc/nginx/php/php7.4.conf 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