From 055ce540c652e676965ade2f22ed5024bd5e07a2 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 12 Jun 2021 12:24:05 +0530 Subject: [PATCH] docker-compose: added redis --- docker-compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 35c9924c..c5445ab2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,8 @@ services: ports: - 7000:7000 environment: - DATABASE_URL: postgres://postgres:@postgres:5432/postgres # set password at placeholder + DATABASE_URL: postgres://postgres:password@postgres:5432/postgres # set password at placeholder + MCAPTCHA_REDIS_URL: redis://mcaptcha-redis/ RUST_LOG: debug postgres: @@ -14,8 +15,11 @@ services: volumes: - mcaptcha-data:/var/lib/postgresql/ environment: - POSTGRES_PASSWORD: # enter password + POSTGRES_PASSWORD: password # change password PGDATA: /var/lib/postgresql/data/mcaptcha/ + mcaptcha-redis: + image: mcaptcha/cache:latest + volumes: mcaptcha-data: