Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
江炜
/
erp-module
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
72ca8b65
authored
Dec 23, 2018
by
flyxiaozhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 docker-compose.yml
parent
94f7bc70
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
admin-api/Dockerfile
docker-compose.yml
admin-api/Dockerfile
View file @
72ca8b65
...
...
@@ -5,4 +5,4 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
ADD
target/original-erp-admin-api-1.0-SNAPSHOT.jar app.jar
ENTRYPOINT
["sh","-c","java -jar /app.jar --spring.profiles.active=prod"]
\ No newline at end of file
ENTRYPOINT
["sh","-c","java -jar /app.jar"]
\ No newline at end of file
docker-compose.yml
0 → 100644
View file @
72ca8b65
version
:
'
2'
services
:
eureka-server-1
:
build
:
./admin-api/
image
:
erp-module
restart
:
always
# 总是重启
ports
:
-
"
8080:8081"
expose
:
# 暴露端口,只提供容器间访问,不暴露给主机
-
"
8081"
environment
:
# 环境变量
SPRING_PROFILES_ACTIVE
:
prod
# 自定义参数用于给服务的配置文件传递参数
\ No newline at end of file
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