Skip to content
Snippets Groups Projects
Commit d5245c9d authored by wyl's avatar wyl
Browse files

UPDATE

parent e856403d
No related branches found
No related tags found
No related merge requests found
......@@ -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:
- "8080:8081"
- "8081:8080"
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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment