File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 run : |
2121 rm -f ./src/main/resources/application-secret.yml
2222 touch ./src/main/resources/application-secret.yml
23- echo "${{ secrets.APPLICATION_SECRET_DEV }}" > ./src/main/resources/application-secret.yml
23+ echo "${{ secrets.APPLICATION_SECRET }}" > ./src/main/resources/application-secret.yml
2424
2525 # JDK version 설정
2626 - name : Set up JDK 17
@@ -62,10 +62,10 @@ jobs:
6262 uses : appleboy/ssh-action@master
6363 with :
6464 host : ${{ secrets.EC2_HOST_DEV }}
65- username : ec2-user # ubuntu 에서 변경
65+ username : ubuntu # ubuntu 에서 변경
6666 key : ${{ secrets.EC2_KEY_DEV }}
6767 script : |
68- cd /home/ec2-user /ceos
68+ cd /home/ubuntu /ceos
6969
7070 sudo touch .env
7171 echo "${{ secrets.ENV_DEV }}" | sudo tee .env > /dev/null
7676 sudo docker rm -f $(docker ps -qa)
7777 sudo docker pull ${{ secrets.DOCKER_USERNAME }}/ceos-backend-dev
7878 sudo docker pull ${{ secrets.DOCKER_USERNAME }}/ceos-nginx-dev
79- docker- compose -f docker-compose.dev.yml --env-file ./ .env up -d
79+ docker compose -f docker-compose.dev.yml --env-file .env up -d
8080 docker image prune -f
8181
8282
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ dependencies {
6363 // Apache POI
6464 implementation ' org.apache.poi:poi:4.1.2'
6565 implementation ' org.apache.poi:poi-ooxml:4.1.2'
66+
67+ // actuator
68+ implementation ' org.springframework.boot:spring-boot-starter-actuator'
6669}
6770
6871tasks. named(' test' ) {
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ services:
99 - .env
1010 expose :
1111 - " 8080"
12+ depends_on :
13+ - mysql
1214
1315 nginx :
1416 image : ceos17/ceos-nginx-dev
@@ -18,9 +20,32 @@ services:
1820 ports :
1921 - " 80:80"
2022
23+ mysql :
24+ image : mysql:latest
25+ container_name : mysql
26+ restart : always
27+ environment :
28+ MYSQL_DATABASE : ceos-dev
29+ MYSQL_USER : ${DB_USERNAME}
30+ MYSQL_PASSWORD : ${DB_PASSWORD}
31+ MYSQL_ROOT_PASSWORD : ${DB_PASSWORD}
32+ TZ : Asia/Seoul
33+ ports :
34+ - " 3306:3306"
35+ command :
36+ - " mysqld"
37+ - " --character-set-server=utf8mb4"
38+ - " --collation-server=utf8mb4_unicode_ci"
39+ volumes :
40+ - ./data:/var/lib/mysql
41+
42+
43+
44+
2145 redis :
2246 image : redis:latest
2347 container_name : redis
2448 hostname : redis
2549 ports :
26- - " 6379:6379"
50+ - " 6379:6379"
51+
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ springdoc:
2121 default-produces-media-type : application/json
2222 swagger-ui :
2323 operations-sorter : alpha # 오름차순
24- path : /swagger-ui.html
24+ path : /swagger
2525
2626logging.level :
2727 org.hibernate.SQL : debug
You can’t perform that action at this time.
0 commit comments