docker 로컬db 세팅 권한처리 추가

This commit is contained in:
Bora 2024-07-11 15:16:08 +09:00
parent e71a7cdcc1
commit a1cbc2e128
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,5 @@
FROM mariadb:10.11.7
# windows에서 volume mount 할 경우, 파일 권한이 777로 변경되는 문제가 있어서 아래와 같은 작업을 추가 함
COPY conf.d/server.cnf /etc/mysql/conf.d/server.cnf
RUN chmod 644 /etc/mysql/conf.d/server.cnf

View File

@ -4,6 +4,9 @@ services:
container_name: mariadb container_name: mariadb
image: mariadb:10.11.7 image: mariadb:10.11.7
restart: always restart: always
build:
context: .
dockerfile: Dockerfiles
ports: ports:
- 3307:3306 - 3307:3306
volumes: volumes: