docker-compose: added redis

This commit is contained in:
realaravinth 2021-06-12 12:24:05 +05:30
parent dcfba60c86
commit 055ce540c6
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -6,7 +6,8 @@ services:
ports:
- 7000:7000
environment:
DATABASE_URL: postgres://postgres:<enter-password>@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: