mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2024-11-27 03:48:52 +03:00
29 lines
685 B
YAML
29 lines
685 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
mcaptcha:
|
|
image: mcaptcha/mcaptcha:latest
|
|
ports:
|
|
- 7000:7000
|
|
environment:
|
|
DATABASE_URL: postgres://postgres:password@mcaptcha_postgres:5432/postgres # set password at placeholder
|
|
MCAPTCHA_REDIS_URL: redis://mcaptcha-redis/
|
|
RUST_LOG: debug
|
|
PORT: 7000
|
|
depends_on:
|
|
- mcaptcha-postgres
|
|
- mcaptcha-redis
|
|
|
|
mcaptcha_postgres:
|
|
image: postgres:13.2
|
|
volumes:
|
|
- mcaptcha-data:/var/lib/postgresql/
|
|
environment:
|
|
POSTGRES_PASSWORD: password # change password
|
|
PGDATA: /var/lib/postgresql/data/mcaptcha/
|
|
|
|
mcaptcha-redis:
|
|
image: mcaptcha/cache:latest
|
|
|
|
volumes:
|
|
mcaptcha-data:
|