From 27969fdade6c30a41b1dfbda2e9ba5a05488264c Mon Sep 17 00:00:00 2001 From: sundayenglish Date: Mon, 20 May 2024 15:03:09 +0700 Subject: [PATCH] alpha --- README.md | 6 ++++++ docker-compose.yml | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca9067a --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# RUN +run `docker compose up -d` +# Access Container Docker +run `docker exec -it redis-redis-service-1 bash` +# Access Redis +redis-cli -h 127.0.0.1 -p 6379 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6f86e22 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +version: '3.3' + +services: + redis-service: + image: redis:latest + restart: always + ports: + - "6379:6379" + volumes: + - ./:/root/redis + - ./redis.conf:/usr/local/etc/redis/redis.conf + environment: + - REDIS_PASSWORD=A@1qaz2wsxA@ + - REDIS_PORT=6379 + - REDIS_DATABASES=16