mCaptcha/docker-compose.yml

34 lines
816 B
YAML
Raw Normal View History

# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
version: "3.9"
2021-05-12 13:43:09 +00:00
services:
mcaptcha:
image: mcaptcha/mcaptcha:latest
2021-05-12 13:43:09 +00:00
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
2021-05-12 13:43:09 +00:00
mcaptcha_postgres:
2021-05-12 13:43:09 +00:00
image: postgres:13.2
volumes:
- mcaptcha-data:/var/lib/postgresql/
2021-05-12 13:43:09 +00:00
environment:
2021-06-12 06:54:05 +00:00
POSTGRES_PASSWORD: password # change password
PGDATA: /var/lib/postgresql/data/mcaptcha/
2021-05-12 13:43:09 +00:00
mcaptcha_redis:
2021-06-12 06:54:05 +00:00
image: mcaptcha/cache:latest
2021-05-12 13:43:09 +00:00
volumes:
mcaptcha-data: