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
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chen Liang
Team6-Digital Insight for Health
Commits
d5245c9d
Commit
d5245c9d
authored
4 months ago
by
wyl
Browse files
Options
Downloads
Patches
Plain Diff
UPDATE
parent
e856403d
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
Docker/docker-compose.yml
+13
-13
13 additions, 13 deletions
Docker/docker-compose.yml
terroa/server1.sh
+4
-2
4 additions, 2 deletions
terroa/server1.sh
with
17 additions
and
15 deletions
Docker/docker-compose.yml
+
13
−
13
View file @
d5245c9d
...
...
@@ -10,6 +10,18 @@ services:
MYSQL_ROOT_PASSWORD
:
comsc
networks
:
-
new
nginx
:
image
:
nginx:1.22.1
container_name
:
nginx
ports
:
-
"
80:80"
volumes
:
-
"
/nginx/nginx.conf:/etc/nginx/nginx.conf"
depends_on
:
-
healthcare_01
-
healthcare_02
networks
:
-
new
healthcare_01
:
build
:
context
:
/root/healthcare/
...
...
@@ -27,23 +39,11 @@ services:
dockerfile
:
Docker/Dockerfile
container_name
:
healthcare_02
ports
:
-
"
808
0
:808
1
"
-
"
808
1
:808
0
"
networks
:
-
new
depends_on
:
-
mariadb
nginx
:
image
:
nginx:1.22.1
container_name
:
nginx
ports
:
-
"
80:80"
volumes
:
-
"
/nginx/nginx.conf:/etc/nginx/nginx.conf"
depends_on
:
-
healthcare_01
-
healthcare_02
networks
:
-
new
networks
:
new
:
name
:
wyl
...
...
This diff is collapsed.
Click to expand it.
terroa/server1.sh
+
4
−
2
View file @
d5245c9d
...
...
@@ -121,7 +121,7 @@ sudo systemctl enable --now docker
echo
"docker version"
sudo
docker
-v
echo
"gradle build"
sudo
-i
bash
-c
"cd /root/healthcare && gradle build"
...
...
@@ -129,7 +129,9 @@ sudo -i bash -c "cd /root/healthcare && gradle build"
sudo
docker compose
-f
/root/healthcare/Docker/docker-compose.yml up
-d
#执行sql
docker
exec
-i
mariadb mysql
-uroot
-pcomsc
< /root/healthcare/src/main/resources/healthcare.sql
docker
cp
/root/healthcare/src/main/resources/healthcare.sql mariadb:/tmp/healthcare.sql
docker
exec
-i
mariadb sh
-c
'mysql -uroot -pcomsc < /tmp/healthcare.sql'
# #配置terraform
# sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
...
...
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