feat: run avg command from compose

This commit is contained in:
Aravinth Manivannan 2023-08-04 14:38:17 +05:30
parent 075ac1d379
commit f9f523eca4
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 11 additions and 2 deletions

View File

@ -7,20 +7,29 @@ version: "3.9"
services:
powd:
image: realaravinth/powd:latest
command: powd --help
command: >-
powd avg-generate --start 100000000 --max 110000000 --trials 40 --db=postgres://postgres:password@powd_postgres:5432/postgres --conn 48 --step 10000
environment:
DATABASE_URL: postgres://postgres:password@powd_postgres:5432/postgres # set password at placeholder
RUST_LOG: debug
depends_on:
- powd_postgres
powd_postgres:
condition: service_healthy
powd_postgres:
image: postgres:13.2
ports:
- 5400:5432
volumes:
- powd-data:/var/lib/postgresql/
environment:
POSTGRES_PASSWORD: password # change password
PGDATA: /var/lib/postgresql/data/powd/
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
powd-data: