Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kunkka王辉
docker-test
Commits
aecdf45b
Commit
aecdf45b
authored
Sep 12, 2023
by
Kunkka王辉
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变更参数
parent
f753aa97
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
.env.example
.env.example
+3
-0
docker-compose.yaml
docker-compose.yaml
+3
-5
Dockerfile-nginx
src/Dockerfile-nginx
+0
-1
No files found.
.env.example
View file @
aecdf45b
# 环境变量env dev,test,test1,test2等区分
ENV=dev
PORT=8118
\ No newline at end of file
docker-compose.yaml
View file @
aecdf45b
...
@@ -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
src/Dockerfile-nginx
View file @
aecdf45b
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment