mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-29 04:38:59 +03:00
docker-compose: added redis
This commit is contained in:
parent
dcfba60c86
commit
055ce540c6
1 changed files with 6 additions and 2 deletions
|
@ -6,7 +6,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 7000:7000
|
- 7000:7000
|
||||||
environment:
|
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
|
RUST_LOG: debug
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
@ -14,8 +15,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- mcaptcha-data:/var/lib/postgresql/
|
- mcaptcha-data:/var/lib/postgresql/
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: # enter password
|
POSTGRES_PASSWORD: password # change password
|
||||||
PGDATA: /var/lib/postgresql/data/mcaptcha/
|
PGDATA: /var/lib/postgresql/data/mcaptcha/
|
||||||
|
|
||||||
|
mcaptcha-redis:
|
||||||
|
image: mcaptcha/cache:latest
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mcaptcha-data:
|
mcaptcha-data:
|
||||||
|
|
Loading…
Add table
Reference in a new issue