- docker-compose.ymlservices: rabbitmq: container_name: rabbitmq image: rabbitmq:3-management-alpine init: true volumes: - ./volume/rabbitmq/etc:/etc/rabbitmq - ./volume/rabbitmq/data:/var/lib/rabbitmq - ./volume/rabbitmq/logs:/var/log/rabbitmq - ./volume/enabled_plugins:/etc/rabbitmq/enabled_plugins ports: - "5672:5672" - "15672:15672" environmen..
- docker-compose.yml # docker-compose.yml version: '3.7' services: postgresql: container_name: postgresql image: postgres:13.4 init: true restart: always volumes: - ./volume/data:/var/lib/postgresql/data ports: - 5432:5432 environment: POSTGRES_USER: { username } POSTGRES_PASSWORD: { password }
- docker-compose.yml 생성 # docker-compose.yml version: '3.7' services: redis: container_name: redis image: redis:alpine ports: - 6379:6379 command: redis-server /usr/local/conf/redis.conf labels: - "name=redis" - "mode=standalone" ports: - 6379:6379 volumes: - ./data/:/data - ./conf/redis.conf:/usr/local/conf/redis.conf - ./conf/redis.conf 생성 https://redis.io/docs/management/config/ 에서 버전에 맞는 con..
Subject: Docker-Compose를 사용하여 MariaDB 컨테이너 띄우기. - docker-compose.yml version: '3.7' services: mariadb: container_name: docker-mariadb image: mariadb:10.5.5 init: true user: root restart: always command: - --default-authentication-plugin=mysql_native_password - --character-set-server=utf8mb4 - --collation-server=utf8mb4_unicode_ci - --lower_case_table_names=1 - --sql-mode= volumes: - ${SOME_DIREC..
Subject: Docker는 설치했다. 이번엔 Docker Compose 설치! (참고자료) - CURL을 통해 설치 # docker compose 설치 sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose # 실행 권한 부여 sudo chmod +x /usr/local/bin/docker-compose # PATH 등록 sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose ※ Alpine 리눅스의 경우, 다음의 패키지 의존성이 존재한다..
Subject: CentOS 7에서 도커를 설치해보자. (참고자료) - 예전 버전의 Docker 삭제 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine - Yum Repository 설정 sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo - Docker Engine 설치 sudo yum install docker-ce..