From 38aea153ccef99034a2a2bba547b5e60bb4f12f9 Mon Sep 17 00:00:00 2001 From: MinUk Date: Mon, 10 Nov 2025 16:31:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=A4=ED=97=98=EC=9D=84=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20docker=20compose=20=ED=8C=8C=EC=9D=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d34c637 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,36 @@ +version: '3.9' + +services: + mysql: + image: mysql:8.0 + container_name: mysql + restart: always + environment: + + ports: + - "3306:3306" + volumes: + - ./mysql_data:/var/lib/mysql + command: [ + "--character-set-server=utf8mb4", + "--collation-server=utf8mb4_unicode_ci" + ] + deploy: + resources: + limits: + cpus: '2.0' + memory: 1G + + redis: + image: redis:7.2 + container_name: redis + restart: always + ports: + - "6379:6379" + volumes: + - ./redis_data:/data + command: ["redis-server", "--appendonly", "yes"] + +volumes: + mysql_data: + redis_data: \ No newline at end of file