반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 동일 프로세스
- Vuetify
- CSS
- 동일 프로그램
- vuejs
- onsenui
- bucket cors
- v-text-field height
- 프로세스 방지
- kotlin
- Vue
- sort
- error
- vuetifyjs
- v-select
- Android
- c#
- NUXT
- xlsx
- JavaScript
- bucket max-key
- naver storage bucket error
- onsen-ui
- sequelize
- MySQL
- f035d
- electron-nuxt
- Electron
- naver storage
- nodejs
Archives
- Today
- Total
앙큼한 개발기록
<M1> docker compose 실행 본문
일반적인 윈도우와 맥에서는 platform을 설정하지 않아도 도커이미지 파일을 실행할수 있으나
M1 에서는 platform을 선언하지 않으면 실행이 안됨.
아래는 내가 맨날 복사해서 사용하는 docker-compose.db.yml 파일 내용.
version: '3'
services:
mysql:
image: mysql:latest
container_name: [container name]
platform: linux/amd64 // 플랫폼이 추가됨
restart: always
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_DATABASE=[db name]
- MYSQL_USER=[user name]
- MYSQL_PASSWORD=[password]
- MYSQL_ROOT_USER=[root user name]
- MYSQL_ROOT_PASSWORD=[root user password]
- TZ=Asia/Seoul
volumes:
- "db-data:/var/lib/mysql"
ports:
- 3306:3306
volumes:
db-data:
ps. mysql version 이 원래 5.7.21 이였는데 버전이 5.x.x 면 도커에서 에러가 터짐..
latest 버전으로 해서 하는게 그냥 맘 편해요.
'개발' 카테고리의 다른 글
[c#] 프로그램 자동실행 (0) | 2023.05.23 |
---|---|
[git] error: failed to push some refs to 오류 (0) | 2023.02.09 |
[git] fatal: 정방향이 불가능하므로, 중지합니다. (0) | 2022.06.16 |
서버의 로컬화에 대한 기록(server localization) (0) | 2022.06.08 |
[Macbook] COMMAND ControlCe 사용 (5000, 7000 port) (0) | 2022.06.05 |
Comments