2021-05-12 16:43:09 +03:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
services:
|
2021-06-02 15:47:25 +03:00
|
|
|
mcaptcha:
|
2021-05-12 16:43:09 +03:00
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- 7000:7000
|
|
|
|
environment:
|
2021-06-12 09:54:05 +03:00
|
|
|
DATABASE_URL: postgres://postgres:password@postgres:5432/postgres # set password at placeholder
|
|
|
|
MCAPTCHA_REDIS_URL: redis://mcaptcha-redis/
|
2021-05-12 16:43:09 +03:00
|
|
|
RUST_LOG: debug
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
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
|
|
|
|
2021-06-12 09:54:05 +03:00
|
|
|
mcaptcha-redis:
|
|
|
|
image: mcaptcha/cache:latest
|
|
|
|
|
2021-05-12 16:43:09 +03:00
|
|
|
volumes:
|
2021-06-02 15:47:25 +03:00
|
|
|
mcaptcha-data:
|