2023-06-26 11:29:03 +03:00
|
|
|
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2022-07-18 20:26:21 +03:00
|
|
|
version: "3.9"
|
2021-05-12 16:43:09 +03:00
|
|
|
|
|
|
|
services:
|
2021-06-02 15:47:25 +03:00
|
|
|
mcaptcha:
|
2022-05-10 20:02:52 +03:00
|
|
|
image: mcaptcha/mcaptcha:latest
|
2021-05-12 16:43:09 +03:00
|
|
|
ports:
|
|
|
|
- 7000:7000
|
|
|
|
environment:
|
2022-07-18 20:26:21 +03:00
|
|
|
DATABASE_URL: postgres://postgres:password@mcaptcha_postgres:5432/postgres # set password at placeholder
|
2022-08-05 15:00:40 +03:00
|
|
|
MCAPTCHA_REDIS_URL: redis://mcaptcha_redis/
|
2021-05-12 16:43:09 +03:00
|
|
|
RUST_LOG: debug
|
2022-07-19 13:24:42 +03:00
|
|
|
PORT: 7000
|
|
|
|
depends_on:
|
2022-08-05 15:00:40 +03:00
|
|
|
- mcaptcha_postgres
|
|
|
|
- mcaptcha_redis
|
2021-05-12 16:43:09 +03:00
|
|
|
|
2022-07-18 20:26:21 +03:00
|
|
|
mcaptcha_postgres:
|
2021-05-12 16:43:09 +03:00
|
|
|
image: postgres:13.2
|
|
|
|
volumes:
|
2021-06-02 15:47:25 +03:00
|
|
|
- mcaptcha-data:/var/lib/postgresql/
|
2021-05-12 16:43:09 +03:00
|
|
|
environment:
|
2021-06-12 09:54:05 +03:00
|
|
|
POSTGRES_PASSWORD: password # change password
|
2021-06-02 15:47:25 +03:00
|
|
|
PGDATA: /var/lib/postgresql/data/mcaptcha/
|
2021-05-12 16:43:09 +03:00
|
|
|
|
2022-08-05 15:00:40 +03:00
|
|
|
mcaptcha_redis:
|
2021-06-12 09:54:05 +03:00
|
|
|
image: mcaptcha/cache:latest
|
|
|
|
|
2021-05-12 16:43:09 +03:00
|
|
|
volumes:
|
2021-06-02 15:47:25 +03:00
|
|
|
mcaptcha-data:
|