2022-07-18 22:56:21 +05:30
|
|
|
version: "3.9"
|
2021-05-12 19:13:09 +05:30
|
|
|
|
|
|
|
services:
|
2021-06-02 18:17:25 +05:30
|
|
|
mcaptcha:
|
2022-05-10 22:32:52 +05:30
|
|
|
image: mcaptcha/mcaptcha:latest
|
2021-05-12 19:13:09 +05:30
|
|
|
ports:
|
|
|
|
- 7000:7000
|
|
|
|
environment:
|
2022-07-18 22:56:21 +05:30
|
|
|
DATABASE_URL: postgres://postgres:password@mcaptcha_postgres:5432/postgres # set password at placeholder
|
2021-06-12 12:24:05 +05:30
|
|
|
MCAPTCHA_REDIS_URL: redis://mcaptcha-redis/
|
2021-05-12 19:13:09 +05:30
|
|
|
RUST_LOG: debug
|
2022-07-19 12:24:42 +02:00
|
|
|
PORT: 7000
|
|
|
|
depends_on:
|
2022-07-20 14:44:46 +05:30
|
|
|
- mcaptcha-postgres
|
|
|
|
- mcaptcha-redis
|
2021-05-12 19:13:09 +05:30
|
|
|
|
2022-07-18 22:56:21 +05:30
|
|
|
mcaptcha_postgres:
|
2021-05-12 19:13:09 +05:30
|
|
|
image: postgres:13.2
|
|
|
|
volumes:
|
2021-06-02 18:17:25 +05:30
|
|
|
- mcaptcha-data:/var/lib/postgresql/
|
2021-05-12 19:13:09 +05:30
|
|
|
environment:
|
2021-06-12 12:24:05 +05:30
|
|
|
POSTGRES_PASSWORD: password # change password
|
2021-06-02 18:17:25 +05:30
|
|
|
PGDATA: /var/lib/postgresql/data/mcaptcha/
|
2021-05-12 19:13:09 +05:30
|
|
|
|
2021-06-12 12:24:05 +05:30
|
|
|
mcaptcha-redis:
|
|
|
|
image: mcaptcha/cache:latest
|
|
|
|
|
2021-05-12 19:13:09 +05:30
|
|
|
volumes:
|
2021-06-02 18:17:25 +05:30
|
|
|
mcaptcha-data:
|