From 469ede1917a5cc95a7f85fdedeba33ff44a97a70 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Tue, 10 May 2022 22:41:36 +0530 Subject: [PATCH] feat: WIP docker compose from source configuration --- docker-compose-from-source.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docker-compose-from-source.yml diff --git a/docker-compose-from-source.yml b/docker-compose-from-source.yml new file mode 100644 index 00000000..c5445ab2 --- /dev/null +++ b/docker-compose-from-source.yml @@ -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: