Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Team6-Digital Insight for Health
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chen Liang
Team6-Digital Insight for Health
Compare revisions
4dcbf572975a5ddb10afa15e56bdd9e3cc42d08f to 84bbc4e23b111a6a9b9a360af1767bba1037cacc
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
c24025433/healthcare
Select target project
No results found
84bbc4e23b111a6a9b9a360af1767bba1037cacc
Select Git revision
Swap
Target
c24025433/healthcare
Select target project
c24025433/healthcare
1 result
4dcbf572975a5ddb10afa15e56bdd9e3cc42d08f
Select Git revision
Branches
ba
cmy
lc
main
master
sy
try
wyl
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
docker-compose.yml changes
· a5d93259
Burhan Akbar
authored
1 month ago
a5d93259
Switch to host networking to avoid Docker bridge crash
· 84bbc4e2
Burhan Akbar
authored
1 month ago
84bbc4e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+0
-0
0 additions, 0 deletions
Dockerfile
docker-compose.yml
+10
-14
10 additions, 14 deletions
docker-compose.yml
with
10 additions
and
14 deletions
Docker/
Dockerfile
→
Dockerfile
View file @
84bbc4e2
File moved
This diff is collapsed.
Click to expand it.
docker-compose.yml
View file @
84bbc4e2
...
...
@@ -4,10 +4,11 @@ services:
mariadb
:
image
:
mariadb:10.11.11
container_name
:
mariadb
ports
:
-
"
3306:3306
"
# Host networking means this container listens on the host’s 3306
network_mode
:
"
host
"
environment
:
MYSQL_ROOT_PASSWORD
:
comsc
MYSQL_DATABASE
:
healthcare
volumes
:
-
"
./src/main/resources:/docker-entrypoint-initdb.d"
deploy
:
...
...
@@ -15,28 +16,23 @@ services:
limits
:
cpus
:
'
1'
memory
:
1024M
networks
:
-
healthcare_network
healthcare_01
:
build
:
context
:
.
dockerfile
:
Docker/Dockerfile
container_name
:
healthcare_01
# Shares the host network, so no port mapping is needed
network_mode
:
"
host"
environment
:
-
DB_URL=jdbc:mariadb://mariadb:3306/healthcare?createDatabaseIfNotExist=true
ports
:
-
"
8080:8080"
-
DB_URL=jdbc:mariadb://localhost:3306/healthcare?createDatabaseIfNotExist=true
-
SPRING_DATASOURCE_URL=jdbc:mariadb://localhost:3306/healthcare?createDatabaseIfNotExist=true
-
SPRING_DATASOURCE_USERNAME=root
-
SPRING_DATASOURCE_PASSWORD=comsc
deploy
:
resources
:
limits
:
cpus
:
'
1'
memory
:
1536M
networks
:
-
healthcare_network
depends_on
:
-
mariadb
networks
:
healthcare_network
:
name
:
healthcare_net
\ No newline at end of file
This diff is collapsed.
Click to expand it.