Docker mysql port 층돌, 접속 오류 수정

This commit is contained in:
JongYeob Sheen 2023-10-20 13:20:23 +09:00
parent 7873968e4d
commit 0c3d31c129
3 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,7 @@ services:
MYSQL_ROOT_PASSWORD: omHO7EEzHm52s9DlZD70P6KPKm2TbODC MYSQL_ROOT_PASSWORD: omHO7EEzHm52s9DlZD70P6KPKm2TbODC
MYSQL_DATABASE: boilerplate MYSQL_DATABASE: boilerplate
ports: ports:
- "3306:3306" - "33061:3306"
volumes: volumes:
- db-data:/var/lib/mysql - db-data:/var/lib/mysql
app: app:
@ -25,5 +25,6 @@ services:
DB_NAME: boilerplate DB_NAME: boilerplate
depends_on: depends_on:
- db - db
restart: always
volumes: volumes:
db-data: db-data:

View File

@ -7,7 +7,7 @@ services:
MYSQL_ROOT_PASSWORD: omHO7EEzHm52s9DlZD70P6KPKm2TbODC MYSQL_ROOT_PASSWORD: omHO7EEzHm52s9DlZD70P6KPKm2TbODC
MYSQL_DATABASE: boilerplate MYSQL_DATABASE: boilerplate
ports: ports:
- "3306:3306" - "33061:3306"
volumes: volumes:
- db-data:/var/lib/mysql - db-data:/var/lib/mysql
app: app:
@ -25,6 +25,6 @@ services:
DB_NAME: boilerplate DB_NAME: boilerplate
depends_on: depends_on:
- db - db
restart: always
volumes: volumes:
db-data: db-data:

View File

@ -57,3 +57,6 @@ func (controller *tokenController) List(c *gin.Context) {
c.JSON(http.StatusOK, result) c.JSON(http.StatusOK, result)
} }
func (controller *tokenController) Refresh(c *gin.Context) {
}