diff --git a/docker-compose.yml b/docker-compose.yml index 30425c6..910e9ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: