feat: WIP docker compose from source configuration

This commit is contained in:
realaravinth 2022-05-10 22:41:36 +05:30
parent 2592b7a113
commit 469ede1917
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -0,0 +1,25 @@
version: '3.9'
services:
mcaptcha:
build: .
ports:
- 7000:7000
environment:
DATABASE_URL: postgres://postgres:password@postgres:5432/postgres # set password at placeholder
MCAPTCHA_REDIS_URL: redis://mcaptcha-redis/
RUST_LOG: debug
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: