Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MySpringWeb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
장 무현
MySpringWeb
Commits
8e86160c
Commit
8e86160c
authored
1 month ago
by
장 무현
Browse files
Options
Downloads
Patches
Plain Diff
docker
parent
749c1c9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+4
-0
4 additions, 0 deletions
Dockerfile
docker-compose.yml
+32
-0
32 additions, 0 deletions
docker-compose.yml
with
36 additions
and
0 deletions
Dockerfile
0 → 100644
+
4
−
0
View file @
8e86160c
FROM
openjdk:17
COPY
target/myweb-0.0.1-SNAPSHOT.jar app.jar
EXPOSE
3000
ENTRYPOINT
["java","-jar","/app.jar"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
32
−
0
View file @
8e86160c
version
:
'
3.3'
volumes
:
db_data
:
{}
wordpress_data
:
{}
services
:
db
:
image
:
mysql:5.7
volumes
:
-
db_data:/var/lib/mysql
restart
:
always
environment
:
MYSQL_ROOT_PASSWORD
:
wordpress
MYSQL_DATABASE
:
wordpress
MYSQL_USER
:
wordpress
MYSQL_PASSWORD
:
wordpress
wordpress
:
depends_on
:
-
db
image
:
wordpress:latest
ports
:
-
"
3000:80"
restart
:
always
environment
:
WORDPRESS_DB_HOST
:
db:3306
WORDPRESS_DB_USER
:
wordpress
WORDPRESS_DB_PASSWORD
:
wordpress
WORDPRESS_DB_NAME
:
wordpress
volumes
:
-
wordpress_data:/var/www/html
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment