From 386a4021dea79e8abf77da519e7cbee7ab2e8fef Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 3 Apr 2023 08:40:37 +0800 Subject: [PATCH] Create docker-compose.yml --- docker/redis/docker-compose.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker/redis/docker-compose.yml diff --git a/docker/redis/docker-compose.yml b/docker/redis/docker-compose.yml new file mode 100644 index 00000000..679b8c6a --- /dev/null +++ b/docker/redis/docker-compose.yml @@ -0,0 +1,22 @@ +version: '3.8' + +services: + redis: + image: redis:${APP_VERSION} + container_name: ${APP_NAME} + restart: unless-stopped + ports: + - ${APP_DB_PORT}:6379 + env_file: .env + volumes: + - ./src/redis.conf:/etc/redis.conf:ro + - redis_data:/data + entrypoint: ["redis-server", "/etc/redis.conf"] + +networks: + default: + name: ${APP_NETWORK} + external: true + +volumes: + redis_data: