728x90 반응형 MySQL2 docker compose로 DB 올리기(oracle, mysql, mongodb) 0. download docker https://docs.docker.com/docker-for-windows/install Redirecting… docs.docker.com 1. docker-compose.yaml version: "3.3" services: oracle: container_name: demo_oracle build: context: ./oracle/ dockerfile: Dockerfile image: demo/oracle-xe-11g:latest # environment: - ORACLE_ALLOW_REMOTE=true ports: - "1522:1521" mysql: container_name: demo_mysql command: --character-set-server=utf8.. 2021. 5. 28. docker로 mysql build 하기 도커 다운로드 도커다운로드 도커 build Dockerfile FROM mysql:8.0.21 # 인코딩 ENV LC_ALL=C.UTF-8 ENV character-set-server utf8 ENV collation-server utf8_general_ci ENV default-character-set utf8 ENV default-collation utf8_general_ci # 스키마 명, 비밀번호 ENV MYSQL_DATABASE SCHEMA_NAME // 스키마명 ENV MYSQL_ROOT_PASSWORD password expose 3306 쉘에서 실행하기(wsl 또는 cmd) docker build -t mysql_image . docker run -i -d -p 3306:3306 --nam.. 2021. 4. 7. 이전 1 다음 728x90